74 lines
1.8 KiB
Text
74 lines
1.8 KiB
Text
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
idea
|
|
eclipse
|
|
maven
|
|
`kotlin-dsl`
|
|
id("net.minecrell.licenser") version "0.4.1"
|
|
id("com.github.johnrengelman.shadow") version "6.0.0"
|
|
}
|
|
|
|
group = "io.papermc.paperweight"
|
|
version = "1.0.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
maven("https://files.minecraftforge.net/maven/")
|
|
maven("https://maven.fabricmc.net/")
|
|
mavenLocal()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.apache.httpcomponents:httpclient:4.5.13")
|
|
|
|
// Utils
|
|
implementation("com.opencsv:opencsv:5.3")
|
|
implementation("com.github.salomonbrys.kotson:kotson:2.5.0")
|
|
|
|
// ASM for inspection
|
|
val asmVersion = "9.0"
|
|
implementation("org.ow2.asm:asm:$asmVersion")
|
|
implementation("org.ow2.asm:asm-tree:$asmVersion")
|
|
|
|
// Cadix
|
|
val lorenzVersion = "0.5.6"
|
|
implementation("org.cadixdev:lorenz:$lorenzVersion")
|
|
implementation("org.cadixdev:lorenz-asm:$lorenzVersion")
|
|
implementation("org.cadixdev:lorenz-io-proguard:$lorenzVersion")
|
|
implementation("org.cadixdev:atlas:0.2.0")
|
|
implementation("org.cadixdev:at:0.1.0-rc1")
|
|
implementation("org.cadixdev:mercury:0.1.0-rc2-PW-SNAPSHOT")
|
|
|
|
implementation("net.fabricmc:lorenz-tiny:3.0.0")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
kotlinOptions.freeCompilerArgs = listOf("-Xjvm-default=enable")
|
|
}
|
|
|
|
tasks.jar {
|
|
archiveBaseName.set("io.papermc.paperweight.gradle.plugin")
|
|
}
|
|
|
|
idea {
|
|
module {
|
|
isDownloadSources = true
|
|
isDownloadJavadoc = true
|
|
}
|
|
}
|
|
|
|
eclipse {
|
|
classpath {
|
|
isDownloadSources = true
|
|
isDownloadJavadoc = true
|
|
}
|
|
}
|
|
|
|
license {
|
|
header = file("license/copyright.txt")
|
|
|
|
include("**/*.kt")
|
|
}
|