mirror of
https://github.com/architectury/architectury-plugin.git
synced 2026-03-30 21:05:57 -05:00
Update loom + fix jetbrains annotations remap src
This commit is contained in:
@@ -4,6 +4,7 @@ import org.gradle.api.JavaVersion
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.api.plugins.JavaPluginExtension
|
||||
import java.net.URI
|
||||
|
||||
class ArchitectPlugin : Plugin<Project> {
|
||||
override fun apply(project: Project) {
|
||||
@@ -21,12 +22,14 @@ class ArchitectPlugin : Plugin<Project> {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
project.dependencies.add("compileOnly", "org.jetbrains:annotations:19.0.0")
|
||||
}
|
||||
|
||||
project.tasks.register("remapMcp", RemapMCPTask::class.java) {
|
||||
it.group = "Architect"
|
||||
}
|
||||
|
||||
|
||||
project.tasks.register("remapMcpFakeMod", RemapMCPTask::class.java) {
|
||||
it.fakeMod = true
|
||||
it.group = "Architect"
|
||||
@@ -35,5 +38,11 @@ class ArchitectPlugin : Plugin<Project> {
|
||||
project.tasks.register("transformArchitectJar", TransformTask::class.java) {
|
||||
it.group = "Architect"
|
||||
}
|
||||
|
||||
project.repositories.apply {
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
maven { it.url = URI("https://dl.bintray.com/shedaniel/cloth") }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user