File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+
1
3
plugins {
2
4
java
3
5
kotlin(" jvm" ) version ProjectSetting .KOTLIN_VERSION
@@ -13,10 +15,19 @@ repositories {
13
15
group = ProjectSetting .LIBRARY_GROUP_ID
14
16
version = ProjectSetting .PROJECT_VERSION_NAME
15
17
18
+ java {
19
+ sourceCompatibility = JavaVersion .VERSION_11
20
+ targetCompatibility = JavaVersion .VERSION_11
21
+ }
22
+
23
+ tasks.withType<KotlinCompile > {
24
+ kotlinOptions.jvmTarget = JavaVersion .VERSION_11 .toString()
25
+ }
26
+
16
27
publishing {
17
28
18
29
publications {
19
- register(" gprRelease " , MavenPublication ::class ) {
30
+ register(" release " , MavenPublication ::class ) {
20
31
from(components[" java" ])
21
32
artifactId = rootProject.name
22
33
groupId = project.group.toString()
Original file line number Diff line number Diff line change 1
1
import org.gradle.kotlin.dsl.`kotlin-dsl`
2
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
+
4
+ plugins {
5
+ `kotlin- dsl`
6
+ }
2
7
3
8
repositories {
4
9
mavenCentral()
5
10
}
6
11
7
- plugins {
8
- `kotlin- dsl`
12
+ java {
13
+ sourceCompatibility = JavaVersion .VERSION_11
14
+ targetCompatibility = JavaVersion .VERSION_11
15
+ }
16
+
17
+ tasks.withType<KotlinCompile > {
18
+ kotlinOptions.jvmTarget = JavaVersion .VERSION_11 .toString()
9
19
}
You can’t perform that action at this time.
0 commit comments