Skip to content

Commit 2c23143

Browse files
committed
updating common4j pipeline and nits
1 parent 3742056 commit 2c23143

File tree

6 files changed

+20
-30
lines changed

6 files changed

+20
-30
lines changed

LabApiUtilities/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,6 @@ afterEvaluate {
7979
// above in the plugins block.
8080
compileJava.dependsOn generateBuildConfig, generateTestBuildConfig
8181
}
82-
//tasks.withType(JavaCompile) {
83-
// options.compilerArgs += [
84-
// '--add-opens', 'jdk.crypto.mscapi/sun.security.mscapi=ALL-UNNAMED'
85-
// ]
86-
//}
87-
//
88-
//tasks.withType(Test) {
89-
// jvmArgs += [
90-
// '--add-opens', 'jdk.crypto.mscapi/sun.security.mscapi=ALL-UNNAMED'
91-
// ]
92-
//}
9382
jar {
9483
manifest {
9584
attributes('Implementation-Title': project.name,

azure-pipelines/pull-request-validation/common4j.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
inputs:
3232
cwd: $(Build.SourcesDirectory)/common-java-root
3333
tasks: clean common4j:assemble
34+
javaHomeOption: JDKVersion
35+
jdkVersionOption: 1.17
3436
- template: ../templates/steps/spotbugs.yml
3537
parameters:
3638
project: common4j
@@ -41,4 +43,6 @@ jobs:
4143
inputs:
4244
cwd: $(Build.SourcesDirectory)/common-java-root
4345
tasks: common4j:test -Psugar=true -PmockApiUrl=$(MOCK_API_URL)
46+
javaHomeOption: JDKVersion
47+
jdkVersionOption: 1.17
4448
...

common/build.gradle

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -368,21 +368,21 @@ tasks.configureEach { task ->
368368
if (task.name == 'assembleDistRelease') {
369369
task.dependsOn 'sourcesJar'
370370
}
371-
if (task.name == "publishDistDebugPublicationToVsts-maven-adal-androidRepository") {
372-
task.dependsOn 'generatePomFileForDistReleasePublication'
373-
}
374-
if (task.name == "publishDistReleasePublicationToVsts-maven-adal-androidRepository") {
375-
task.dependsOn 'bundleDistReleaseAar'
376-
}
377-
if (task.name == "publishDistDebugPublicationToVsts-maven-adal-androidRepository") {
378-
task.dependsOn 'bundleDistReleaseAar'
379-
}
380-
if (task.name == "generateMetadataFileForDistDebugPublication") {
381-
task.dependsOn 'bundleDistReleaseAar'
382-
}
383-
if (task.name == "generateMetadataFileForDistReleasePublication") {
384-
task.dependsOn 'bundleDistDebugAar'
385-
}
371+
// if (task.name == "publishDistDebugPublicationToVsts-maven-adal-androidRepository") {
372+
// task.dependsOn 'generatePomFileForDistReleasePublication'
373+
// }
374+
// if (task.name == "publishDistReleasePublicationToVsts-maven-adal-androidRepository") {
375+
// task.dependsOn 'bundleDistReleaseAar'
376+
// }
377+
// if (task.name == "publishDistDebugPublicationToVsts-maven-adal-androidRepository") {
378+
// task.dependsOn 'bundleDistReleaseAar'
379+
// }
380+
// if (task.name == "generateMetadataFileForDistDebugPublication") {
381+
// task.dependsOn 'bundleDistReleaseAar'
382+
// }
383+
// if (task.name == "generateMetadataFileForDistReleasePublication") {
384+
// task.dependsOn 'bundleDistDebugAar'
385+
// }
386386
}
387387

388388
// This is used to generate the pom file for publishing to external maven in maven-release-jobs.yml
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
4-
5-
#distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
64
zipStoreBase=GRADLE_USER_HOME
75
zipStorePath=wrapper/dists

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ org.gradle.daemon=true
99

1010
# See https://stackoverflow.com/questions/56075455/expiring-daemon-because-jvm-heap-space-is-exhausted
1111
# we must make sure that the total size is <7G, as that's the RAM size of VM on the build pipeline.
12-
#org.gradle.jvmargs=-Xmx3072m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError
1312
org.gradle.jvmargs=-Xmx3072m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError
1413

1514
# This the TSL versionName...

gradle/versions.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ext {
99
compileSdkVersion = 34
1010
buildToolsVersion = "28.0.3"
1111

12-
// Pluginssssss
12+
// Plugins
1313
gradleVersion = '8.1.1'
1414
kotlinVersion = '1.7.21'
1515
spotBugsGradlePluginVersion = '4.7.1'

0 commit comments

Comments
 (0)