Skip to content

Commit d9f7497

Browse files
committed
wip
1 parent 291f9aa commit d9f7497

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ test {
4040

4141
// Native build properties
4242
ext {
43-
h3GitRemote = 'https://github.com/uber/h3.git'
44-
h3UseDocker = false // TODO: true
45-
h3SystemPrune = false
46-
h3DockcrossTag = '20240812-60fa1b0'
47-
h3DockcrossOnly = ''
48-
h3GithubArtifactsUse = false
49-
h3GithubArtifactsByRun = ''
43+
h3GitRemote = project.findProperty('h3GitRemote') ?: 'https://github.com/uber/h3.git'
44+
h3UseDocker = project.findProperty('h3UseDocker') ?: 'true'
45+
h3SystemPrune = project.findProperty('h3SystemPrune') ?: 'false'
46+
h3DockcrossTag = project.findProperty('h3DockcrossTag') ?: '20240812-60fa1b0'
47+
h3DockcrossOnly = project.findProperty('h3DockcrossOnly') ?: ''
48+
h3GithubArtifactsUse = project.findProperty('h3GithubArtifactsUse') ?: 'false'
49+
h3GithubArtifactsByRun = project.findProperty('h3GithubArtifactsByRun') ?: ''
5050
}
5151

5252
// Load H3 version from properties file
@@ -68,8 +68,8 @@ task buildH3(type: Exec) {
6868
}
6969

7070
compileJava {
71+
dependsOn buildH3
7172
options.compilerArgs += ['-h', "${projectDir}/src/main/c/h3-java/src"]
72-
finalizedBy buildH3
7373
}
7474

7575
spotless {

0 commit comments

Comments
 (0)