-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
55 lines (45 loc) · 1.08 KB
/
build.gradle.kts
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
51
52
53
54
55
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "8.1.1"
}
java.sourceCompatibility = JavaVersion.VERSION_17
tasks.build {
dependsOn(tasks.shadowJar)
}
allprojects {
group = "com.mefrreex.jooqconnector"
description = "jooqconnector"
version = "1.0.1"
}
subprojects {
apply {
plugin("java-library")
plugin("maven-publish")
}
repositories {
mavenLocal()
maven("https://repo.maven.apache.org/maven2/")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
tasks.withType<ProcessResources> {
filesMatching("*.yml") {
expand(project.properties)
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
}
}
}
}