-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgraded package dependencies to latest version and switched to gradle-8.10 (#642) * Make sure autogenerated UIDs don't start with '-' (#644) * KSM-553 Added new and updated PAM field types (#650) * Added latest ServiceNow versions (washingtondc, xanadu) to the GHA * switched EOL from CRLF to LF
- Loading branch information
1 parent
4a7fae7
commit 274db14
Showing
13 changed files
with
394 additions
and
213 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") | ||
} |
3 changes: 1 addition & 2 deletions
3
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,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
networkTimeout=10000 | ||
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) | ||
} | ||
} | ||
} | ||
} |
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
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
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.6-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip | ||
|
||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
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
Oops, something went wrong.