2023-06-05 10:50:00 +02:00
|
|
|
buildscript {
|
|
|
|
|
repositories {
|
|
|
|
|
gradlePluginPortal()
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-05-23 21:38:32 +02:00
|
|
|
|
|
|
|
|
plugins {
|
2023-08-01 12:25:37 +02:00
|
|
|
id 'org.ajoberstar.grgit' version '5.2.0'
|
|
|
|
|
id 'org.ajoberstar.git-publish' version '4.2.0'
|
2023-06-05 10:50:00 +02:00
|
|
|
id 'pl.allegro.tech.build.axion-release' version '1.15.0' apply false
|
|
|
|
|
id 'org.jdrupes.vmoperator.java-doc-conventions'
|
2023-05-23 21:38:32 +02:00
|
|
|
id 'eclipse'
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-02 14:40:32 +02:00
|
|
|
allprojects {
|
|
|
|
|
project.group = 'org.jdrupes.vmoperator'
|
|
|
|
|
}
|
2023-06-05 10:50:00 +02:00
|
|
|
|
2023-06-05 13:18:19 +02:00
|
|
|
task stage {
|
|
|
|
|
description = 'To be executed by CI, build and update JavaDoc.'
|
|
|
|
|
group = 'build'
|
|
|
|
|
|
|
|
|
|
// Build everything first
|
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
|
dependsOn subprojects.tasks.collect {
|
|
|
|
|
tc -> tc.findByName("build") }.flatten()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (JavaVersion.current() == JavaVersion.VERSION_17) {
|
|
|
|
|
// Publish JavaDoc
|
|
|
|
|
dependsOn gitPublishPush
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-23 21:38:32 +02:00
|
|
|
eclipse {
|
|
|
|
|
project {
|
|
|
|
|
file {
|
|
|
|
|
project.natures += 'org.eclipse.buildship.core.gradleprojectnature'
|
|
|
|
|
project.buildCommand 'org.eclipse.buildship.core.gradleprojectbuilder'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|