-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
40 lines (34 loc) · 927 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenCentral()
}
group 'de.itsTyrion'
version '1.4'
dependencies {
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
compileOnly 'org.projectlombok:lombok:1.18.30'
compileOnly 'org.jetbrains:annotations:24.1.0'
implementation 'com.grack:nanojson:1.7'
}
compileJava {
options.encoding = 'UTF-8'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = sourceCompatibility
options.annotationProcessorPath = classpath
}
jar {
from 'build/classes/java/main'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
publishing {
publications {
// noinspection GroovyAssignabilityCheck
mavenJava(MavenPublication) {
// noinspection GroovyAssignabilityCheck, GrUnresolvedAccess
from components.java
}
}
}