-
Notifications
You must be signed in to change notification settings - Fork 27
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
1 parent
7cc183c
commit e5f7db2
Showing
4 changed files
with
82 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
apply plugin: 'java-gradle-plugin' | ||
apply plugin: 'groovy' | ||
apply plugin: 'maven' | ||
plugins { | ||
id 'java-gradle-plugin' | ||
id 'groovy' | ||
id 'maven-publish' | ||
id 'com.jfrog.bintray' version '0.6' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
|
@@ -13,3 +16,75 @@ dependencies { | |
|
||
sourceCompatibility = '1.6' | ||
targetCompatibility = '1.6' | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
|
||
pom.withXml { | ||
asNode().with { | ||
appendNode('name', 'Gradle Maven settings plugin') | ||
appendNode('description', 'Gradle plugin for exposing Maven settings file configuration to Gradle project.') | ||
appendNode('url', 'https://github.com/mark-vieira/gradle-maven-settings-plugin') | ||
appendNode('inceptionYear', '2014') | ||
} | ||
|
||
asNode().appendNode('licenses').appendNode('license').with { | ||
appendNode('name', 'The Apache Software License, Version 2.0') | ||
appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.txt') | ||
appendNode('distribution', 'repo') | ||
} | ||
|
||
asNode().appendNode('scm').with { | ||
appendNode('url', 'https://github.com/mark-vieira/gradle-maven-settings-plugin') | ||
appendNode('connection', 'scm:git:https://github.com/mark-vieira/gradle-maven-settings-plugin.git') | ||
appendNode('developerConnection', 'scm:git:https://[email protected]/mark-vieira/gradle-maven-settings-plugin.git') | ||
} | ||
|
||
asNode().appendNode('developers').appendNode('developer').with { | ||
appendNode('id', 'mark-vieira') | ||
appendNode('name', 'Mark Vieira') | ||
appendNode('email', '[email protected]') | ||
appendNode('url', 'https://github.com/mark-vieira') | ||
} | ||
|
||
asNode().appendNode('issueManagement').with { | ||
appendNode('system', 'GitHub') | ||
appendNode('url', 'https://github.com/mark-vieira/gradle-maven-settings-plugin/issues') | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = project.hasProperty('bintrayUser') ? bintrayUser : null | ||
key = project.hasProperty('bintrayApiKey') ? bintrayApiKey : null | ||
|
||
publications = ['mavenJava'] | ||
|
||
pkg { | ||
repo = 'maven' | ||
name = 'gradle-maven-settings-plugin' | ||
desc = 'Gradle plugin for exposing Maven settings file configuration to Gradle project.' | ||
websiteUrl = 'https://github.com/mark-vieira/gradle-maven-settings-plugin' | ||
issueTrackerUrl = 'https://github.com/mark-vieira/gradle-maven-settings-plugin/issues' | ||
vcsUrl = 'https://github.com/mark-vieira/gradle-maven-settings-plugin.git' | ||
licenses = ['Apache-2.0'] | ||
labels = ['gradle', 'maven', 'settings'] | ||
publicDownloadNumbers = true | ||
|
||
version { | ||
name = project.version | ||
vcsTag = project.version | ||
attributes = ['gradle-plugin': "net.linguica.maven-settings:${project.group}:${project.name}"] | ||
} | ||
} | ||
} |
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,2 +1,2 @@ | ||
group=net.linguica.gradle | ||
version=0.1-SNAPSHOT | ||
version=0.1 |
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