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+
13plugins {
24 id ' java'
5+ id ' java-library'
36 id ' maven-publish'
47}
58
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+
616group ' com.menecats'
7- version ' 1.0.0 '
17+ version ' 1.0.1 '
818
919repositories {
1020 mavenCentral()
@@ -13,6 +23,11 @@ repositories {
1323dependencies {
1424}
1525
26+ task sourceJar (type : Jar ) {
27+ classifier ' sources'
28+ from sourceSets. main. allJava
29+ }
30+
1631publishing {
1732 repositories {
1833 maven {
@@ -29,9 +44,10 @@ publishing {
2944 polybool(MavenPublication ) {
3045 version = version
3146 groupId = group
32- artifactId = ' polybool-java '
47+ artifactId = rootProject . name
3348
3449 from components. java
50+ artifact tasks. sourceJar
3551 }
3652 }
3753}
You can’t perform that action at this time.
0 commit comments