Skip to content

Commit

Permalink
use kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jan 24, 2024
1 parent b4a65c2 commit 7bda1db
Show file tree
Hide file tree
Showing 113 changed files with 6,341 additions and 5,685 deletions.
9 changes: 9 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 6 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "8.+"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
id 'org.jetbrains.kotlin.jvm'
}

group = 'org.cubewhy.celestial'
Expand All @@ -12,8 +12,6 @@ println('Celestial Launcher -> https://www.lunarclient.top/')

compileJava.options.encoding = "UTF-8"

java.sourceCompatibility = 17
java.targetCompatibility = 17

configurations {
include
Expand All @@ -27,10 +25,6 @@ repositories {
}

dependencies {
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'


include 'org.slf4j:slf4j-api:2.0.11'
include 'org.slf4j:slf4j-log4j12:2.0.11'
include 'org.apache.logging.log4j:log4j-api:2.22.1'
Expand All @@ -43,17 +37,10 @@ dependencies {
include 'co.gongzh.procbridge:procbridge:1.1'
include 'commons-io:commons-io:2.15.1'
include 'cn.hutool:hutool-crypto:5.8.25'
include "org.jetbrains.kotlin:kotlin-stdlib-jdk8"

testCompileOnly 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'

testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}

test {
enabled = false
useJUnitPlatform()
}

shadowJar {
Expand All @@ -80,4 +67,8 @@ jar {
)
}

kotlin {
jvmToolchain(17)
}

jar.dependsOn(shadowJar)
8 changes: 8 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
pluginManagement {
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
}
}
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
}
rootProject.name = 'celestial'

Loading

0 comments on commit 7bda1db

Please sign in to comment.