File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ import java.nio.charset.StandardCharsets
2
+
1
3
plugins {
2
4
id ' java'
5
+ id ' java-library'
3
6
id ' maven-publish'
4
7
}
5
8
9
+ sourceCompatibility = JavaVersion . VERSION_1_8
10
+ targetCompatibility = JavaVersion . VERSION_1_8
11
+
12
+ javadoc. options. encoding = StandardCharsets . UTF_8
13
+ compileJava. options. encoding = StandardCharsets . UTF_8
14
+ compileTestJava. options. encoding = StandardCharsets . UTF_8
15
+
6
16
group ' com.menecats'
7
- version ' 1.0.0 '
17
+ version ' 1.0.1 '
8
18
9
19
repositories {
10
20
mavenCentral()
@@ -13,6 +23,11 @@ repositories {
13
23
dependencies {
14
24
}
15
25
26
+ task sourceJar (type : Jar ) {
27
+ classifier ' sources'
28
+ from sourceSets. main. allJava
29
+ }
30
+
16
31
publishing {
17
32
repositories {
18
33
maven {
@@ -29,9 +44,10 @@ publishing {
29
44
polybool(MavenPublication ) {
30
45
version = version
31
46
groupId = group
32
- artifactId = ' polybool-java '
47
+ artifactId = rootProject . name
33
48
34
49
from components. java
50
+ artifact tasks. sourceJar
35
51
}
36
52
}
37
53
}
You can’t perform that action at this time.
0 commit comments