Skip to content

Commit 322bc7e

Browse files
Drop unused deploy and verify tasks.
1 parent 6ca723c commit 322bc7e

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

build.gradle

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ buildscript {
1313
ob_version = objectboxVersionNumber + (objectboxVersionRelease? "" : "$versionPostFix-SNAPSHOT")
1414
println "ObjectBox Java version $ob_version"
1515

16-
ob_expected_version = project.hasProperty('expectedVersion') ? project.property('expectedVersion') : 'UNDEFINED'
17-
1816
// Core version for tests
1917
// Be careful to diverge here; easy to forget and hard to find JNI problems
2018
ob_native_version = objectboxVersionNumber + (objectboxVersionRelease? "": "-dev-SNAPSHOT")
@@ -153,36 +151,6 @@ configure(subprojects.findAll { projectNamesToPublish.contains(it.name) }) {
153151
}
154152
}
155153

156-
// this task is also used by the composite build ('objectbox-deploy'), check before making changes
157-
task installAll {
158-
group 'deploy'
159-
dependsOn ':objectbox-java-api:install'
160-
dependsOn ':objectbox-java:install'
161-
dependsOn ':objectbox-kotlin:install'
162-
dependsOn ':objectbox-rxjava:install'
163-
doLast {
164-
println("Installed version $version")
165-
}
166-
}
167-
168-
// this task is also used by the composite build ('objectbox-deploy'), check before making changes
169-
task deployAll {
170-
group 'deploy'
171-
dependsOn ':objectbox-java-api:uploadArchives'
172-
dependsOn ':objectbox-java:uploadArchives'
173-
dependsOn ':objectbox-kotlin:uploadArchives'
174-
dependsOn ':objectbox-rxjava:uploadArchives'
175-
}
176-
177-
// this task is also used by the composite build ('objectbox-deploy'), check before making changes
178-
task verifyVersion {
179-
group 'verify'
180-
dependsOn ':objectbox-java:verifyVersion'
181-
doLast {
182-
assert ob_expected_version == version
183-
}
184-
}
185-
186154
wrapper {
187155
distributionType = Wrapper.DistributionType.ALL
188156
}

objectbox-java/build.gradle

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -143,23 +143,3 @@ uploadArchives {
143143
}
144144
}
145145
}
146-
147-
// this task is also used by the composite build ('objectbox-deploy'), check before making changes
148-
task verifyVersion {
149-
group 'verify'
150-
doLast {
151-
// verify version in Boxstore.java
152-
File storeFile = file('src/main/java/io/objectbox/BoxStore.java')
153-
def versionLine = storeFile.filterLine { line ->
154-
line.contains("String VERSION =")
155-
}.toString()
156-
157-
if (versionLine == null || versionLine.empty) {
158-
throw new GradleException('Could not find VERSION in ObjectStore.cpp')
159-
}
160-
161-
// matches snippet like '12.34.56'
162-
def boxStoreVersion = versionLine.find("\\d+\\.\\d+\\.\\d+")
163-
assert ob_expected_version == boxStoreVersion
164-
}
165-
}

0 commit comments

Comments
 (0)