mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 06:37:34 +00:00
51 lines
936 B
Groovy
51 lines
936 B
Groovy
plugins {
|
|
id 'groovy-gradle-plugin'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group = 'dts'
|
|
version = '1.0.0'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation gradleApi()
|
|
implementation localGroovy()
|
|
}
|
|
|
|
// Configure source sets if building as standalone
|
|
sourceSets {
|
|
main {
|
|
groovy {
|
|
srcDirs = ['src/main/groovy']
|
|
}
|
|
resources {
|
|
srcDirs = ['src/main/resources']
|
|
}
|
|
}
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
typescriptGenerator {
|
|
id = 'dts.typescript-generator'
|
|
implementationClass = 'dts.TypeScriptGeneratorPlugin'
|
|
displayName = 'TypeScript Definition Generator'
|
|
description = 'Generates TypeScript definition files from Java API sources'
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
mavenLocal()
|
|
}
|
|
}
|
|
|
|
// Handle duplicate resources
|
|
tasks.processResources {
|
|
duplicatesStrategy = 'include'
|
|
}
|