1
1
buildscript {
2
2
repositories {
3
+ mavenCentral()
3
4
google()
4
- jcenter()
5
- maven { url " https://plugins.gradle.org/m2/" }
5
+ gradlePluginPortal()
6
6
}
7
7
8
8
dependencies {
9
9
classpath ' com.gradle.publish:plugin-publish-plugin:0.9.9'
10
10
classpath ' com.github.ben-manes:gradle-versions-plugin:0.17.0'
11
11
classpath ' com.vanniktech:gradle-android-junit-jacoco-plugin:0.11.0'
12
+ classpath ' com.vanniktech:gradle-maven-publish-plugin:0.1.0'
12
13
}
13
14
}
14
15
@@ -17,10 +18,12 @@ apply plugin: 'java'
17
18
apply plugin : ' com.github.ben-manes.versions'
18
19
apply plugin : ' com.gradle.plugin-publish'
19
20
apply plugin : ' com.vanniktech.android.junit.jacoco'
21
+ apply plugin : " com.vanniktech.maven.publish"
20
22
21
23
repositories {
22
- jcenter ()
24
+ mavenCentral ()
23
25
google()
26
+ jcenter()
24
27
}
25
28
26
29
dependencies {
@@ -34,9 +37,6 @@ dependencies {
34
37
35
38
sourceCompatibility = JavaVersion . VERSION_1_7
36
39
37
- group = GROUP
38
- version = VERSION_NAME
39
-
40
40
pluginBundle {
41
41
website = POM_URL
42
42
vcsUrl = POM_SCM_URL
@@ -55,27 +55,3 @@ task wrapper(type: Wrapper) {
55
55
gradleVersion = ' 4.5'
56
56
distributionType = Wrapper.DistributionType . ALL
57
57
}
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' )
0 commit comments