Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.

Commit e181510

Browse files
committed
Gradle fix
1 parent 9233d48 commit e181510

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

build.gradle

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
group 'com.github.ClusterWS'
21
version '1.1.0'
32

43
apply plugin: 'java'
54
apply plugin: 'maven'
65

76
sourceCompatibility = 1.7
87

9-
task wrapper(type: Wrapper) {
10-
gradleVersion = '2.9'
11-
}
8+
group 'com.github.ClusterWS'
9+
1210

1311
repositories {
1412
maven {
15-
url("https://plugins.gradle.org/m2/")
13+
url("https://jitpack.io" )
1614
}
15+
mavenCentral()
1716
}
1817

1918
dependencies {
@@ -24,9 +23,18 @@ dependencies {
2423

2524
}
2625

27-
allprojects {
28-
repositories {
29-
jcenter()
30-
}
26+
task sourcesJar(type: Jar, dependsOn: classes) {
27+
classifier = 'sources'
28+
from sourceSets.main.allSource
29+
}
30+
31+
task javadocJar(type: Jar, dependsOn: javadoc) {
32+
classifier = 'javadoc'
33+
from javadoc.destinationDir
34+
}
35+
36+
artifacts {
37+
archives sourcesJar
38+
archives javadocJar
3139
}
3240

0 commit comments

Comments
 (0)