@@ -6,7 +6,7 @@ version = '1.0.0'
6
6
7
7
buildscript {
8
8
repositories {
9
- jcenter ()
9
+ mavenCentral ()
10
10
}
11
11
dependencies {
12
12
classpath ' com.android.tools.build:gradle:2.3.+'
@@ -15,7 +15,7 @@ buildscript {
15
15
}
16
16
17
17
repositories {
18
- jcenter ()
18
+ mavenCentral ()
19
19
}
20
20
21
21
@@ -76,14 +76,17 @@ if(hasProperty('target') && target == 'android') {
76
76
} else {
77
77
78
78
apply plugin : ' java'
79
- apply plugin : ' maven'
79
+ apply plugin : ' maven-publish '
80
80
81
81
sourceCompatibility = JavaVersion . VERSION_1_8
82
82
targetCompatibility = JavaVersion . VERSION_1_8
83
83
84
- install {
85
- repositories. mavenInstaller {
86
- pom. artifactId = ' swagger-petstore-feign'
84
+ publishing {
85
+ publications {
86
+ maven(MavenPublication ) {
87
+ artifactId = ' swagger-petstore-feign'
88
+ from components. java
89
+ }
87
90
}
88
91
}
89
92
@@ -103,19 +106,19 @@ ext {
103
106
}
104
107
105
108
dependencies {
106
- compile " io.swagger.core.v3:swagger-annotations:$swagger_annotations_version "
107
- compile " io.github.openfeign:feign-core:$feign_version "
108
- compile " io.github.openfeign:feign-jackson:$feign_version "
109
- compile " io.github.openfeign:feign-slf4j:$feign_version "
110
- compile " io.github.openfeign.form:feign-form:$feign_form_version "
111
- compile " com.fasterxml.jackson.core:jackson-core:$jackson_version "
112
- compile " com.fasterxml.jackson.core:jackson-annotations:$jackson_version "
113
- compile " com.fasterxml.jackson.core:jackson-databind:$jackson_version "
114
- compile " com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version "
115
- compile (" org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version " ) {
109
+ implementation " io.swagger.core.v3:swagger-annotations:$swagger_annotations_version "
110
+ implementation " io.github.openfeign:feign-core:$feign_version "
111
+ implementation " io.github.openfeign:feign-jackson:$feign_version "
112
+ implementation " io.github.openfeign:feign-slf4j:$feign_version "
113
+ implementation " io.github.openfeign.form:feign-form:$feign_form_version "
114
+ implementation " com.fasterxml.jackson.core:jackson-core:$jackson_version "
115
+ implementation " com.fasterxml.jackson.core:jackson-annotations:$jackson_version "
116
+ implementation " com.fasterxml.jackson.core:jackson-databind:$jackson_version "
117
+ implementation " com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version "
118
+ implementation (" org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version " ) {
116
119
exclude group : " org.json" , module : " json"
117
120
}
118
- compile " org.json:json:20180130"
119
- compile " com.brsanthu:migbase64:2.2"
120
- testCompile " junit:junit:$junit_version "
121
+ implementation " org.json:json:20180130"
122
+ implementation " com.brsanthu:migbase64:2.2"
123
+ testImplementation " junit:junit:$junit_version "
121
124
}
0 commit comments