Skip to content

Commit 6b15846

Browse files
authored
Switch to publishing non-delomboked sources (#1788)
* Fixes #762, #1966: Switch to publishing non-delomboked sources Delomboked sources are available under the 'sources-delomboked' classifier * Remove publication of delomboked sources JAR
1 parent 2323583 commit 6b15846

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ subprojects {
2020
compileJava.options.encoding = 'UTF-8'
2121
compileTestJava.options.encoding = 'UTF-8'
2222

23+
repositories {
24+
jcenter()
25+
mavenCentral()
26+
}
27+
2328
lombok {
2429
version = '1.18.8'
2530
}
@@ -36,18 +41,11 @@ subprojects {
3641
project.sourceSets.main.java.srcDirs.find { it.exists() }
3742
}
3843

39-
repositories {
40-
jcenter()
41-
mavenCentral()
42-
}
43-
4444
// specific modules should be excluded from publication
4545
if ( ! ["test-support", "jdbc-test", "docs-examples"].contains(it.name) ) {
4646
apply from: "$rootDir/gradle/publishing.gradle"
4747
apply from: "$rootDir/gradle/bintray.gradle"
4848

49-
project.tasks.sourceJar.from(delombok)
50-
5149
publishing {
5250
publications {
5351
mavenJava(MavenPublication) { publication ->

gradle/publishing.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apply plugin: 'maven-publish'
22

33
task sourceJar(type: Jar) {
44
classifier = 'sources'
5+
from sourceSets.main.allJava
56
}
67

78
task javadocJar(type: Jar, dependsOn: javadoc) {

0 commit comments

Comments
 (0)