Skip to content

Commit c69d7d4

Browse files
authored
Use Gradle Maven Publish Plugin for publishing. (#117)
1 parent 902f978 commit c69d7d4

File tree

2 files changed

+6
-115
lines changed

2 files changed

+6
-115
lines changed

build.gradle

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
buildscript {
22
repositories {
3+
mavenCentral()
34
google()
4-
jcenter()
5-
maven { url "https://plugins.gradle.org/m2/" }
5+
gradlePluginPortal()
66
}
77

88
dependencies {
99
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.9'
1010
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
1111
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.11.0'
12+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.1.0'
1213
}
1314
}
1415

@@ -17,10 +18,12 @@ apply plugin: 'java'
1718
apply plugin: 'com.github.ben-manes.versions'
1819
apply plugin: 'com.gradle.plugin-publish'
1920
apply plugin: 'com.vanniktech.android.junit.jacoco'
21+
apply plugin: "com.vanniktech.maven.publish"
2022

2123
repositories {
22-
jcenter()
24+
mavenCentral()
2325
google()
26+
jcenter()
2427
}
2528

2629
dependencies {
@@ -34,9 +37,6 @@ dependencies {
3437

3538
sourceCompatibility = JavaVersion.VERSION_1_7
3639

37-
group = GROUP
38-
version = VERSION_NAME
39-
4040
pluginBundle {
4141
website = POM_URL
4242
vcsUrl = POM_SCM_URL
@@ -55,27 +55,3 @@ task wrapper(type: Wrapper) {
5555
gradleVersion = '4.5'
5656
distributionType = Wrapper.DistributionType.ALL
5757
}
58-
59-
task groovydocJar(type: Jar, dependsOn: groovydoc) {
60-
classifier = 'groovydoc'
61-
from 'build/docs/groovydoc'
62-
}
63-
64-
task javadocJar(type: Jar, dependsOn: javadoc) {
65-
classifier = 'javadoc'
66-
from 'build/docs/javadoc'
67-
}
68-
69-
task sourcesJar(type: Jar) {
70-
from sourceSets.main.allSource
71-
classifier = 'sources'
72-
}
73-
74-
artifacts {
75-
archives jar
76-
archives groovydocJar
77-
archives javadocJar
78-
archives sourcesJar
79-
}
80-
81-
apply from: file('gradle/gradle-mvn-push.gradle')

gradle/gradle-mvn-push.gradle

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)