-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
62 lines (50 loc) · 1.07 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
56
57
58
59
60
61
62
plugins {
id("java-library")
id("maven-publish")
id("checkstyle")
}
group = "com.github.burningtnt"
version = "0.8.1"
description = "Minimal library for reading WEBP images"
java {
withSourcesJar()
}
repositories {
mavenCentral()
}
val javadocJar = tasks.create<Jar>("javadocJar") {
group = "build"
archiveClassifier.set("javadoc")
}
tasks.compileJava {
options.release.set(8)
sourceCompatibility = "8"
targetCompatibility = "8"
}
checkstyle {
sourceSets = mutableSetOf()
}
tasks.withType<GenerateModuleMetadata> {
enabled = false
}
tasks.getByName("build") {
dependsOn(tasks.getByName("checkstyleMain") {
group = "build"
})
dependsOn(tasks.getByName("checkstyleTest") {
group = "build"
})
}
dependencies {
testImplementation(project)
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
}
}
}