mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-13 05:54:01 +01:00
745ccfae10
- Convert package infos stuff to a proper plugin - Add extension for specifying which source sets get generated package infos - Move extension classes into their own files - Move GeneratePackageInfosTask into com.jozufozu.gradle
40 lines
1.1 KiB
Groovy
40 lines
1.1 KiB
Groovy
plugins {
|
|
id 'groovy-gradle-plugin'
|
|
}
|
|
|
|
repositories {
|
|
gradlePluginPortal()
|
|
mavenCentral()
|
|
maven {
|
|
name = 'MinecraftForge'
|
|
url = 'https://maven.minecraftforge.net/'
|
|
}
|
|
maven {
|
|
name = 'Architectury'
|
|
url = 'https://maven.architectury.dev/'
|
|
}
|
|
maven { url = 'https://repo.spongepowered.org/repository/maven-public' }
|
|
maven { url = 'https://maven.parchmentmc.org' }
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
platformPlugin { PluginDeclaration plugin ->
|
|
plugin.id = 'flywheel.platform'
|
|
plugin.implementationClass = 'com.jozufozu.gradle.PlatformPlugin'
|
|
}
|
|
jarSetPlugin { PluginDeclaration plugin ->
|
|
plugin.id = 'flywheel.jar-sets'
|
|
plugin.implementationClass = 'com.jozufozu.gradle.JarSetPlugin'
|
|
}
|
|
packageInfosPlugin { PluginDeclaration plugin ->
|
|
plugin.id = 'flywheel.package-infos'
|
|
plugin.implementationClass = 'com.jozufozu.gradle.PackageInfosPlugin'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'dev.architectury.loom:dev.architectury.loom.gradle.plugin:1.6-SNAPSHOT'
|
|
}
|