-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
50 lines (40 loc) · 1.02 KB
/
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
41
42
43
44
45
46
47
48
49
50
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group 'com.hakan.basicdi'
version '0.0.5.5'
sourceCompatibility = 8
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.34'
compileOnly 'org.projectlombok:lombok:1.18.34'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.3'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.3'
}
test {
useJUnitPlatform()
}
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
version = project.version
artifactId = project.name
from components.java
}
}
}
artifacts.archives(tasks.shadowJar)
tasks.jar {
enabled = true
}
tasks.shadowJar {
archiveFileName.set("${rootProject.name}-${rootProject.version}.jar")
}