generated from frogobox/frogo-build-src
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
42 lines (33 loc) · 856 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version ProjectSetting.KOTLIN_VERSION
`maven-publish`
}
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
group = ProjectSetting.LIBRARY_GROUP_ID
version = ProjectSetting.PROJECT_VERSION_NAME
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
publishing {
publications {
register("release", MavenPublication::class) {
from(components["java"])
artifactId = rootProject.name
groupId = project.group.toString()
version = project.version.toString()
}
repositories {
maven("https://jitpack.io")
}
}
}