-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
92 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
VERSION_NAME=0.0.1-SNAPSHOT | ||
ARTIFACT_ID=conditional | ||
GROUP=io.github.shyamz-22 | ||
|
||
POM_NAME=Conditional On Profiles | ||
POM_PACKAGING=jar | ||
POM_DESCRIPTION=Create a Spring Bean only if All profiles are active. | ||
POM_URL=https://github.com/shyamz-22/conditional-profiles.git | ||
POM_SCM_URL=https://github.com/shyamz-22/conditional-profiles.git | ||
POM_SCM_CONNECTION=git@github.com:shyamz-22/conditional-profiles.git | ||
POM_SCM_DEV_CONNECTION=git@github.com:shyamz-22/conditional-profiles.git | ||
POM_LICENCE_NAME=MIT License | ||
POM_LICENCE_URL=https://github.com/shyamz-22/conditional-profiles/blob/master/LICENSE | ||
POM_DEVELOPER_ID=shyamz-22 | ||
POM_DEVELOPER_NAME=Syamala Umamaheswaran | ||
|
||
RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2 | ||
SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots |
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,57 @@ | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
ext.isReleaseVersion = !version.endsWith("SNAPSHOT") | ||
|
||
signing { | ||
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") } | ||
sign configurations.archives | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.groupId = GROUP | ||
pom.artifactId = ARTIFACT_ID | ||
pom.version = VERSION_NAME | ||
|
||
pom.project { | ||
name POM_NAME | ||
packaging POM_PACKAGING | ||
// optionally artifactId can be defined here | ||
description POM_DESCRIPTION | ||
url POM_URL | ||
|
||
scm { | ||
connection POM_SCM_CONNECTION | ||
developerConnection POM_SCM_DEV_CONNECTION | ||
url POM_SCM_URL | ||
} | ||
|
||
licenses { | ||
license { | ||
name POM_LICENCE_NAME | ||
url POM_LICENCE_URL | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id POM_DEVELOPER_ID | ||
name POM_DEVELOPER_NAME | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |