Flywheel/buildSrc/build.gradle
Jozufozu 745ccfae10 Plugin play
- 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
2024-05-17 08:43:56 -07:00

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'
}