Skip to content

Commit 9e5b795

Browse files
committed
Replace deprecated Gradle 'maven' plugin with 'maven-publish'
1 parent 234a865 commit 9e5b795

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

build.gradle

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id 'java'
33
id 'idea'
4-
id 'maven'
4+
id 'maven-publish'
55
}
66

77
repositories {
@@ -14,10 +14,6 @@ version = '1.5.2-SNAPSHOT'
1414
sourceCompatibility = 1.7
1515
targetCompatibility = 1.7
1616

17-
configurations {
18-
deployerJars
19-
}
20-
2117
compileJava {
2218
options.compilerArgs += ['-encoding', 'UTF-8']
2319
}
@@ -26,16 +22,19 @@ javadoc {
2622
options.encoding = 'UTF-8'
2723
}
2824

29-
install {
30-
repositories.mavenInstaller {
31-
pom.version = project.version
32-
pom.groupId = project.group
33-
pom.artifactId = 'Java-WebSocket'
25+
publishing {
26+
publications {
27+
maven(MavenPublication) {
28+
groupId = project.group
29+
artifactId = 'Java-WebSocket'
30+
version = project.version
31+
32+
from components.java
33+
}
3434
}
3535
}
3636

3737
dependencies {
38-
deployerJars "org.apache.maven.wagon:wagon-webdav:1.0-beta-2"
3938
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
4039
testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
4140
testCompile group: 'junit', name: 'junit', version: '4.12'

0 commit comments

Comments
 (0)