VM-Operator/buildSrc/build.gradle

35 lines
746 B
Groovy
Raw Permalink Normal View History

2023-05-23 21:38:32 +02:00
plugins {
// Support convention plugins written in Groovy. Convention plugins
// are build scripts in 'src/main' that automatically become available
// as plugins in the main build.
id 'groovy-gradle-plugin'
2023-09-14 22:07:01 +02:00
// Apply eclipse plugin
id 'eclipse'
2023-05-23 21:38:32 +02:00
}
sourceSets {
2024-10-04 15:01:58 +00:00
main {
groovy {
srcDirs = ['src']
}
resources {
srcDirs = ['resources']
}
}
2023-05-23 21:38:32 +02:00
}
2023-09-14 22:07:01 +02:00
eclipse {
jdt {
file {
withProperties { properties ->
def formatterPrefs = new Properties()
2024-10-04 15:01:58 +00:00
rootProject.file("../gradle/org.eclipse.jdt.core.formatter.prefs")
2023-09-14 22:07:01 +02:00
.withInputStream { formatterPrefs.load(it) }
properties.putAll(formatterPrefs)
}
}
}
}