Skip to content

Commit

Permalink
update: build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Mar 28, 2022
1 parent d83d76a commit 9bb6ffe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
13 changes: 12 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
java
kotlin("jvm") version ProjectSetting.KOTLIN_VERSION
Expand All @@ -13,10 +15,19 @@ repositories {
group = ProjectSetting.LIBRARY_GROUP_ID
version = ProjectSetting.PROJECT_VERSION_NAME

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
}

publishing {

publications {
register("gprRelease", MavenPublication::class) {
register("release", MavenPublication::class) {
from(components["java"])
artifactId = rootProject.name
groupId = project.group.toString()
Expand Down
14 changes: 12 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
import org.gradle.kotlin.dsl.`kotlin-dsl`
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
`kotlin-dsl`
}

repositories {
mavenCentral()
}

plugins {
`kotlin-dsl`
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
}

0 comments on commit 9bb6ffe

Please sign in to comment.