File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,16 @@ if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_21)) {
5050
5151rootProject.name = " polaris"
5252
53- val baseVersion = file(" version.txt" ).readText().trim()
53+ val baseVersion = layout.rootDirectory.file(" version.txt" ).asFile.readText().trim()
54+
55+ gradle.beforeProject {
56+ version = baseVersion
57+ group = " org.apache.polaris"
58+
59+ if (noSourceChecksProjects.contains(this .path)) {
60+ project.extra[" duplicated-project-sources" ] = true
61+ }
62+ }
5463
5564fun loadProperties (file : File ): Properties {
5665 val props = Properties ()
@@ -112,12 +121,6 @@ for (sparkVersion in sparkVersions) {
112121 }
113122}
114123
115- gradle.beforeProject {
116- if (noSourceChecksProjects.contains(this .path)) {
117- project.extra[" duplicated-project-sources" ] = true
118- }
119- }
120-
121124pluginManagement {
122125 repositories {
123126 mavenCentral() // prefer Maven Central, in case Gradle's repo has issues
@@ -156,11 +159,6 @@ dependencyResolutionManagement {
156159 }
157160}
158161
159- gradle.beforeProject {
160- version = baseVersion
161- group = " org.apache.polaris"
162- }
163-
164162val isCI = System .getenv(" CI" ) != null
165163val isBuildScanRequested = gradle.startParameter.isBuildScan
166164
You can’t perform that action at this time.
0 commit comments