File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' java-library'
3
+ id ' maven-publish'
4
+ id ' io.freefair.lombok' version ' 6.4.2'
3
5
}
4
6
5
7
group ' dev.xdark'
@@ -19,6 +21,11 @@ tasks.withType(JavaCompile) {
19
21
options. compilerArgs. addAll([' -parameters' , ' -g:lines,source,vars' ])
20
22
}
21
23
24
+ task sourcesJar (type : Jar ) {
25
+ from sourceSets. main. delombokTask
26
+ classifier = ' sources'
27
+ }
28
+
22
29
dependencies {
23
30
api ' org.ow2.asm:asm:9.2'
24
31
api ' org.ow2.asm:asm-tree:9.2'
@@ -40,3 +47,18 @@ dependencies {
40
47
test {
41
48
useJUnitPlatform()
42
49
}
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
+ }
You can’t perform that action at this time.
0 commit comments