mirror of
https://github.com/architectury/architectury-plugin.git
synced 2026-03-28 04:07:01 -05:00
86 lines
2.2 KiB
Groovy
86 lines
2.2 KiB
Groovy
plugins {
|
|
id "org.jetbrains.kotlin.jvm" version "1.3.72"
|
|
id "com.jfrog.bintray" version "1.8.5"
|
|
id "java"
|
|
id "idea"
|
|
id "eclipse"
|
|
id "maven"
|
|
id "maven-publish"
|
|
}
|
|
|
|
group "me.shedaniel"
|
|
version = "1.0." + (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv("GITHUB_RUN_NUMBER"))
|
|
|
|
sourceCompatibility = targetCompatibility = 1.8
|
|
|
|
repositories {
|
|
jcenter()
|
|
maven { url "https://maven.fabricmc.net/" }
|
|
}
|
|
|
|
apply plugin: 'java-gradle-plugin'
|
|
|
|
dependencies {
|
|
implementation gradleApi()
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.72"
|
|
implementation "net.fabricmc:fabric-loom:0.5-SNAPSHOT"
|
|
runtime "net.fabricmc:fabric-loom:0.5-SNAPSHOT"
|
|
implementation "net.fabricmc:tiny-remapper:0.3.0.70"
|
|
implementation "net.fabricmc:tiny-mappings-parser:0.2.2.14"
|
|
implementation "org.ow2.asm:asm:8.0"
|
|
implementation "org.ow2.asm:asm-commons:8.0"
|
|
implementation "org.ow2.asm:asm-tree:8.0"
|
|
implementation "org.ow2.asm:asm-util:8.0"
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
architect {
|
|
id = 'me.shedaniel.architect.plugin'
|
|
implementationClass = 'me.shedaniel.architect.plugin.ArchitectPlugin'
|
|
}
|
|
}
|
|
}
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier("sources")
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
bintray {
|
|
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
|
|
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY')
|
|
publications = ["MyPublication"]
|
|
publish = true
|
|
pkg {
|
|
repo = "cloth"
|
|
name = "architect-plugin"
|
|
userOrg = "shedaniel"
|
|
licenses = ["MIT"]
|
|
version {
|
|
name = project.version
|
|
vcsTag = project.version
|
|
released = new Date()
|
|
vcsUrl = 'https://github.com/shedaniel/architect-plugin.git'
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
MyPublication(MavenPublication) {
|
|
from components.java
|
|
artifact(sourcesJar)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
}
|
|
} |