File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ import org.vertx.java.platform.impl.ModuleClassLoader
18
18
* limitations under the License.
19
19
*/
20
20
21
- apply from : " gradle/maven.gradle"
22
-
23
21
apply plugin : ' java'
24
22
apply plugin : ' groovy'
25
23
apply plugin : ' idea'
@@ -28,6 +26,13 @@ apply plugin: 'eclipse'
28
26
// We load some extra properties from vertx.properties
29
27
loadProperties(" vertx.properties" )
30
28
29
+ // We have to explicitly load props from the user home dir - on CI we set
30
+ // GRADLE_USER_HOME to a different dir to avoid problems with concurrent builds corrupting
31
+ // a shared Maven local and using Gradle wrapper concurrently
32
+ loadProperties(" ${ System.getProperty('user.home')} /.gradle/gradle.properties" )
33
+
34
+ apply from : " gradle/maven.gradle"
35
+
31
36
version = project. ext. version
32
37
group = modowner
33
38
archivesBaseName = modname
@@ -50,7 +55,12 @@ configurations {
50
55
}
51
56
52
57
repositories {
53
- mavenLocal()
58
+ if (System . getenv(" JENKINS_HOME" ) == null ) {
59
+ // We don't want to use mavenLocal when running on CI - mavenLocal is only useful in Gradle for
60
+ // publishing artifacts locally for development purposes - maven local is also not threadsafe when there
61
+ // are concurrent builds
62
+ mavenLocal()
63
+ }
54
64
maven { url ' https://oss.sonatype.org/content/repositories/snapshots' }
55
65
mavenCentral()
56
66
}
You can’t perform that action at this time.
0 commit comments