diff --git a/build.gradle.kts b/build.gradle.kts index ac94b41..1da63c7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,27 +24,26 @@ dependencies { compileOnly("org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT") } +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + withSourcesJar() +} + tasks { - java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - withSourcesJar() - } processResources { filesMatching("plugin.yml") { expand(project.properties) } duplicatesStrategy = DuplicatesStrategy.EXCLUDE } - jar { - destinationDirectory = rootProject.layout.buildDirectory - } - withType().configureEach { + withType { options.encoding = "UTF-8" } - withType().configureEach { + withType { archiveBaseName = "HamsterScript" from(rootProject.file("LICENSE")) duplicatesStrategy = DuplicatesStrategy.EXCLUDE + destinationDirectory = rootProject.layout.buildDirectory } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 637f022..1c22674 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,2 +1 @@ rootProject.name = "hamster-script" -