Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit cc83be9

Browse files
authored
GH-49 Use modern gradle standard (#49)
1 parent da9180b commit cc83be9

File tree

5 files changed

+35
-29
lines changed

5 files changed

+35
-29
lines changed

build.gradle.kts

Lines changed: 0 additions & 29 deletions
This file was deleted.

buildSrc/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
5+
repositories {
6+
gradlePluginPortal()
7+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
plugins {
2+
`java-library`
3+
}
4+
5+
group = "com.eternalcode"
6+
version = "1.0.0"
7+
8+
repositories {
9+
mavenLocal()
10+
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
11+
maven { url = uri("https://repo.panda-lang.org/releases") }
12+
maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
13+
}
14+
15+
java {
16+
sourceCompatibility = JavaVersion.VERSION_17
17+
targetCompatibility = JavaVersion.VERSION_17
18+
}
19+
20+
tasks.withType<JavaCompile>() {
21+
options.encoding = "UTF-8"
22+
}

bukkit/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
22

33
plugins {
4+
id("com.eternalcode.java-conventions")
5+
id("com.github.johnrengelman.shadow") version "7.1.2"
46
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
57
}
68

core/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
plugins {
2+
id("com.eternalcode.java-conventions")
3+
}
4+
15
dependencies {
26
implementation("dev.rollczi.litecommands:core:2.7.0")
37
implementation("net.dzikoysk:cdn:1.14.1")

0 commit comments

Comments
 (0)