Skip to content

Commit 6e7cc1f

Browse files
committed
added Central integration and Java7 compatibility
1 parent 0b03cad commit 6e7cc1f

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ buildscript {
44
}
55
dependencies {
66
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'
79
}
810
}
911

@@ -16,6 +18,10 @@ plugins {
1618

1719
apply plugin: 'com.gradle.plugin-publish'
1820

21+
if(project.hasProperty('mavenCentral')) {
22+
apply from: 'gradle/mavenCentral.gradle'
23+
}
24+
1925
scmVersion {
2026
tag {
2127
prefix = 'axion-release'
@@ -32,6 +38,8 @@ scmVersion {
3238
group = 'pl.allegro.tech.build'
3339
version = scmVersion.version
3440

41+
sourceCompatibility = '1.7'
42+
3543
repositories {
3644
mavenCentral()
3745
}

gradle/mavenCentral.gradle

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
}

0 commit comments

Comments
 (0)