-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #430 from atlanhq/DVX-119
Adds experimental package for migrating metadata from one set of assets to another
- Loading branch information
Showing
14 changed files
with
449 additions
and
55 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
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
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,4 +1,65 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
version = providers.gradleProperty("VERSION_NAME").get() | ||
val jarName = "asset-export-basic" | ||
|
||
plugins { | ||
id("com.atlan.kotlin-custom-package") | ||
`maven-publish` | ||
signing | ||
} | ||
|
||
tasks { | ||
jar { | ||
archiveBaseName.set(jarName) | ||
} | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenJavaPkgCfg") { | ||
groupId = providers.gradleProperty("GROUP").get() | ||
artifactId = providers.gradleProperty("AEB_ARTIFACT_ID").get() | ||
version = providers.gradleProperty("VERSION_NAME").get() | ||
from(components["java"]) | ||
pom { | ||
name.set(providers.gradleProperty("AEB_ARTIFACT_ID").get()) | ||
description.set(providers.gradleProperty("AEB_DESCRIPTION").get()) | ||
url.set(providers.gradleProperty("POM_URL").get()) | ||
packaging = providers.gradleProperty("POM_PACKAGING").get() | ||
licenses { | ||
license { | ||
name.set(providers.gradleProperty("POM_LICENCE_NAME").get()) | ||
url.set(providers.gradleProperty("POM_LICENCE_URL").get()) | ||
distribution.set(providers.gradleProperty("POM_LICENCE_DIST").get()) | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set(providers.gradleProperty("POM_DEVELOPER_ID").get()) | ||
name.set(providers.gradleProperty("POM_DEVELOPER_NAME").get()) | ||
email.set(providers.gradleProperty("POM_DEVELOPER_EMAIL").get()) | ||
} | ||
} | ||
organization { | ||
name.set(providers.gradleProperty("POM_DEVELOPER_NAME").get()) | ||
url.set(providers.gradleProperty("POM_ORGANIZATION_URL").get()) | ||
} | ||
scm { | ||
connection.set(providers.gradleProperty("POM_SCM_CONNECTION").get()) | ||
developerConnection.set(providers.gradleProperty("POM_SCM_DEV_CONNECTION").get()) | ||
url.set(providers.gradleProperty("POM_SCM_URL").get()) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
useGpgCmd() | ||
sign(publishing.publications["mavenJavaPkgCfg"]) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
val jarPath = "$rootDir/jars" | ||
|
||
plugins { | ||
id("com.atlan.kotlin-custom-package") | ||
alias(libs.plugins.shadow) | ||
} | ||
|
||
dependencies { | ||
implementation(project(":samples:packages:asset-export-basic")) | ||
implementation(project(":samples:packages:asset-import")) | ||
} | ||
|
||
tasks { | ||
shadowJar { | ||
isZip64 = true | ||
destinationDirectory.set(file(jarPath)) | ||
dependencies { | ||
include(project(":samples:packages:asset-export-basic")) | ||
include(project(":samples:packages:asset-import")) | ||
} | ||
mergeServiceFiles() | ||
} | ||
|
||
jar { | ||
// Override the default jar task so we get the shadowed jar | ||
// as the only jar output | ||
actions = listOf() | ||
doLast { shadowJar } | ||
} | ||
} |
Oops, something went wrong.