Skip to content

Commit 095ae37

Browse files
author
Dimitry Ivanov
committed
Add maven publishing configuration
1 parent d594dce commit 095ae37

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

Diff for: app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ android {
2222
minSdkVersion MIN_SDK
2323
targetSdkVersion TARGET_SDK
2424
versionCode 1
25-
versionName '1.0.0'
25+
versionName version
2626
}
2727
}
2828

Diff for: build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ allprojects {
1414
jcenter()
1515
}
1616
group = 'ru.noties'
17+
version = VERSION_NAME
1718
}
1819

1920
task clean(type: Delete) {

Diff for: gradle.properties

+14
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
org.gradle.jvmargs=-Xmx4g
2+
3+
VERSION_NAME=1.0.0
4+
5+
GROUP=ru.noties
6+
POM_DESCRIPTION=Adapt
7+
POM_URL=https://github.com/noties/Adapt
8+
POM_SCM_URL=https://github.com/noties/Adapt
9+
POM_SCM_CONNECTION=scm:git:git://github.com/noties/Adapt.git
10+
POM_SCM_DEV_CONNECTION=scm:git:git://github.com/noties/Adapt.git
11+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
12+
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
13+
POM_LICENCE_DIST=repo
14+
POM_DEVELOPER_ID=noties
15+
POM_DEVELOPER_NAME=Dimitry Ivanov

Diff for: library/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
minSdkVersion MIN_SDK
1010
targetSdkVersion TARGET_SDK
1111
versionCode 1
12-
versionName '1.0.0-SNAPSHOT'
12+
versionName version
1313
}
1414
}
1515

@@ -22,3 +22,7 @@ dependencies {
2222
testImplementation TEST_MOCKITO
2323
testImplementation TEST_ROBOLECTRIC
2424
}
25+
26+
if (project.hasProperty('release')) {
27+
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
28+
}

Diff for: library/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME=Adapt
2+
POM_ARTIFACT_ID=adapt
3+
POM_PACKAGING=aar

0 commit comments

Comments
 (0)