File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ buildscript {
4
4
}
5
5
dependencies {
6
6
classpath group : ' com.gradle.publish' , name : ' plugin-publish-plugin' , version : ' 0.9.1'
7
+ classpath group : ' io.codearte.gradle.nexus' , name : ' gradle-nexus-staging-plugin' , version : ' 0.5.3'
8
+ classpath group : ' com.bmuschko' , name : ' gradle-nexus-plugin' , version : ' 2.3.1'
7
9
}
8
10
}
9
11
@@ -16,6 +18,10 @@ plugins {
16
18
17
19
apply plugin : ' com.gradle.plugin-publish'
18
20
21
+ if (project. hasProperty(' mavenCentral' )) {
22
+ apply from : ' gradle/mavenCentral.gradle'
23
+ }
24
+
19
25
scmVersion {
20
26
tag {
21
27
prefix = ' axion-release'
@@ -32,6 +38,8 @@ scmVersion {
32
38
group = ' pl.allegro.tech.build'
33
39
version = scmVersion. version
34
40
41
+ sourceCompatibility = ' 1.7'
42
+
35
43
repositories {
36
44
mavenCentral()
37
45
}
Original file line number Diff line number Diff line change
1
+
2
+ buildscript {
3
+ repositories {
4
+ mavenCentral()
5
+ }
6
+ dependencies {
7
+ classpath group : ' io.codearte.gradle.nexus' , name : ' gradle-nexus-staging-plugin' , version : ' 0.5.3'
8
+ classpath group : ' com.bmuschko' , name : ' gradle-nexus-plugin' , version : ' 2.3.1'
9
+ }
10
+ }
11
+
12
+ apply plugin : ' io.codearte.nexus-staging'
13
+ apply plugin : ' com.bmuschko.nexus'
14
+
15
+ modifyPom {
16
+ project {
17
+ name project. name
18
+ description ' Gradle release and version management plugin'
19
+ url ' https://github.com/allegro/axion-release-plugin'
20
+ inceptionYear ' 2014'
21
+
22
+ scm {
23
+ url ' https://github.com/allegro/axion-release-plugin'
24
+ connection ' scm:git@github.com:allegro/axion-release-plugin.git'
25
+ developerConnection ' scm:git@github.com:allegro/axion-release-plugin.git'
26
+ }
27
+
28
+ licenses {
29
+ license {
30
+ name ' The Apache Software License, Version 2.0'
31
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
32
+ }
33
+ }
34
+
35
+ developers {
36
+ developer {
37
+ id ' adamdubiel'
38
+ name ' Adam Dubiel'
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+
45
+ nexusStaging {
46
+ packageGroup = " pl.allegro"
47
+
48
+ numberOfRetries = 15
49
+ delayBetweenRetriesInMillis = 5000
50
+ }
You can’t perform that action at this time.
0 commit comments