Skip to content

Commit 9ce5832

Browse files
authored
Merge pull request #35
Forward local.repo.url property from Maven build to Gradle
2 parents 0e76143 + 348991e commit 9ce5832

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

org.graalvm.python.gradle.plugin/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ def polyglotVersion = project.properties.getOrDefault('polyglot.version', versio
1515
repositories {
1616
mavenLocal()
1717
mavenCentral()
18+
if (project.hasProperty('localRepoUrl')) {
19+
def path = project.localRepoUrl?.trim()
20+
if (path) {
21+
maven {
22+
url uri(project.localRepoUrl)
23+
}
24+
}
25+
}
1826
}
1927

2028
gradlePlugin {

org.graalvm.python.gradle.plugin/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ SOFTWARE.
133133
<argument>-Dorg.gradle.java.home=${gradle.java.home}</argument>
134134
<argument>-Pversion=${revision}</argument>
135135
<argument>-Ppolyglot.version=${project.polyglot.version}</argument>
136+
<argument>-PlocalRepoUrl=${local.repo.url}</argument>
136137
<argument>build</argument>
137138
</arguments>
138139
</configuration>
@@ -150,6 +151,7 @@ SOFTWARE.
150151
<argument>-Dorg.gradle.java.home=${gradle.java.home}</argument>
151152
<argument>-Pversion=${revision}</argument>
152153
<argument>-Ppolyglot.version=${project.polyglot.version}</argument>
154+
<argument>-PlocalRepoUrl=${local.repo.url}</argument>
153155
<argument>clean</argument>
154156
</arguments>
155157
</configuration>
@@ -167,6 +169,7 @@ SOFTWARE.
167169
<argument>-Dorg.gradle.java.home=${gradle.java.home}</argument>
168170
<argument>-Pversion=${revision}</argument>
169171
<argument>-Ppolyglot.version=${project.polyglot.version}</argument>
172+
<argument>-PlocalRepoUrl=${local.repo.url}</argument>
170173
<argument>publishToMavenLocal</argument>
171174
</arguments>
172175
</configuration>
@@ -184,6 +187,7 @@ SOFTWARE.
184187
<argument>-Dorg.gradle.java.home=${gradle.java.home}</argument>
185188
<argument>-Pversion=${revision}</argument>
186189
<argument>-Ppolyglot.version=${project.polyglot.version}</argument>
190+
<argument>-PlocalRepoUrl=${local.repo.url}</argument>
187191
<argument>-PaltDeploymentRepository=${altDeploymentRepository}</argument>
188192
<argument>publish</argument>
189193
</arguments>

0 commit comments

Comments
 (0)