Skip to content

Commit

Permalink
rearrange the project inclusion structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Apr 26, 2024
1 parent 8d53bd9 commit cb8a804
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//IMPL cannot get this composite build to work - have resorted to sequence of commands in github CI

tasks.register("doAll"){
dependsOn(gradle.includedBuild("ivoa").task(":jar"))
finalizedBy(gradle.includedBuild("gradletooling").task(":vodml-sample:test"))
description = "builds and installs the runtime library and then runs unit tests on code generated from sample model"
}
//tasks.register("doAll"){
// dependsOn(gradle.includedBuild("ivoa").task(":jar"))
// finalizedBy(gradle.includedBuild("gradletooling").task(":vodml-sample:test"))
// description = "builds and installs the runtime library and then runs unit tests on code generated from sample model"
//}

// would like rto do something like this
//tasks.register<GradleBuild>("doAll"){
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
this is an empty umbrella build to include the various component builds
*/

rootProject.name="vodml"
includeBuild("runtime/java") //fixed code needed by the generated code for java
includeBuild("models/ivoa") // the ivoa base model
includeBuild("tools/gradletooling") //gradle plugin
includeBuild("tools/gradletooling/sample") //sample project
2 changes: 1 addition & 1 deletion tools/gradletooling/gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ gradlePlugin {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(11))//NB needs to stay at 11 for gradle plugin ATM
}
}

Expand Down
1 change: 1 addition & 0 deletions tools/gradletooling/gradle-plugin/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name="gradle-plugin"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
}
includeBuild("gradle-plugin") //get the gradle plugin
includeBuild("../gradle-plugin") //get the gradle plugin
}

// == Define locations for components ==
Expand All @@ -16,8 +16,5 @@ dependencyResolutionManagement {
}

}
includeBuild("../../models/ivoa")
rootProject.name="gradletooling"
include("sample")

project(":sample").name = "vodml-sample"
includeBuild("../../../models/ivoa")
rootProject.name="vodml-sample"

0 comments on commit cb8a804

Please sign in to comment.