Skip to content

Commit eec67a4

Browse files
authored
Merge pull request #6 from Col-E/delombok
Publish sources artifact with delombok
2 parents 5c443b6 + 498b934 commit eec67a4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins {
22
id 'java-library'
3+
id 'maven-publish'
4+
id 'io.freefair.lombok' version '6.4.2'
35
}
46

57
group 'dev.xdark'
@@ -19,6 +21,11 @@ tasks.withType(JavaCompile) {
1921
options.compilerArgs.addAll(['-parameters', '-g:lines,source,vars'])
2022
}
2123

24+
task sourcesJar(type: Jar) {
25+
from sourceSets.main.delombokTask
26+
classifier = 'sources'
27+
}
28+
2229
dependencies {
2330
api 'org.ow2.asm:asm:9.2'
2431
api 'org.ow2.asm:asm-tree:9.2'
@@ -40,3 +47,18 @@ dependencies {
4047
test {
4148
useJUnitPlatform()
4249
}
50+
51+
publishing {
52+
repositories {
53+
maven {
54+
name = 'tmp-delombok-repo'
55+
url = 'file:///tmp/delombok-repo'
56+
}
57+
}
58+
publications {
59+
maven(MavenPublication) {
60+
from components.java
61+
artifact sourcesJar
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)