-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added latest ServiceNow versions (washingtondc, xanadu) to the GHA
Upgraded to Gradle 8.10.1 and switched to *.kts and foojay toolchain resolver
- Loading branch information
1 parent
1a70370
commit b2e6e2c
Showing
5 changed files
with
99 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 0 additions & 57 deletions
57
integration/servicenow-external-credential-resolver/build.gradle
This file was deleted.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
integration/servicenow-external-credential-resolver/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
group "com.keepersecurity" | ||
version "0.1.0" | ||
|
||
plugins { | ||
base | ||
java | ||
} | ||
|
||
base { | ||
archivesName = "keeper-external-credentials" | ||
} | ||
|
||
java { | ||
toolchain { | ||
// Vancouver-- built with OpenJDK 11.x | ||
languageVersion = JavaLanguageVersion.of(11) | ||
|
||
// Washington DC: A ServiceNow build of OpenJDK 17.0.8.1 is Supported and Included (17.0.8.1-sncmid1) | ||
// Administrators will need to make sure any 3rd party JAR files for Credential resolvers, JDBC drivers, etc. | ||
// are compatible with Java 17 and 'strong encapsulation', before upgrading. | ||
// More information: KB1273036 MID Server - JRE 17 Upgrade | ||
|
||
// Washington DC, Xanadu++ built with OpenJDK 17.x | ||
//languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
|
||
// This must point to the MID Server installation location (agent directory path). | ||
val midServerAgentDir = "/opt/servicenow/mid/agent/lib" | ||
|
||
repositories { | ||
mavenCentral() | ||
flatDir { | ||
dirs(midServerAgentDir) | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation ("com.keepersecurity.secrets-manager:core:16.6.4+") | ||
|
||
// MID server dependencies, not required to be uploaded | ||
// MID jar dependency for config APIs | ||
compileOnly("com.snc:mid") | ||
compileOnly("com.snc:commons-glide") | ||
compileOnly("com.snc:commons-core-automation") | ||
compileOnly("com.snc:snc-automation-api") | ||
|
||
// NB! JDK16+/Vancouver+ may require: export _JAVA_OPTIONS="--add-opens=java.base/sun.security.util=ALL-UNNAMED" | ||
// Vancouver and newer: IFileSystem is in the new mid-api.jar | ||
if (file("${midServerAgentDir}/mid-api.jar").exists()) { | ||
compileOnly("com.snc:mid-api") | ||
} | ||
} | ||
|
||
tasks.jar { | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
manifest { | ||
attributes("Main-Class" to "com.snc.discovery.CredentialResolver") | ||
} | ||
from(configurations | ||
.runtimeClasspath | ||
.get() // Gradle 6+ | ||
.files // Gradle 6+ | ||
.map { if (it.isDirectory) it else zipTree(it) } | ||
) | ||
exclude("META-INF/*.SF") | ||
exclude("META-INF/*.DSA") | ||
exclude("META-INF/*.RSA") | ||
} |
12 changes: 6 additions & 6 deletions
12
integration/servicenow-external-credential-resolver/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
#Mon Sep 16 16:27:48 CDT 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
16 changes: 16 additions & 0 deletions
16
integration/servicenow-external-credential-resolver/settings.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
rootProject.name = "keeper-external-credentials" | ||
|
||
plugins { | ||
id("org.gradle.toolchains.foojay-resolver") version "0.8.0" | ||
} | ||
|
||
@Suppress("UnstableApiUsage") | ||
toolchainManagement { | ||
jvm { | ||
javaRepositories { | ||
repository("foojay") { | ||
resolverClass.set(org.gradle.toolchains.foojay.FoojayToolchainResolver::class.java) | ||
} | ||
} | ||
} | ||
} |