Skip to content

Commit

Permalink
Release version 0.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Jul 21, 2015
1 parent 4c70556 commit d315cb2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 85 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[ ![Download](https://api.bintray.com/packages/markvieira/maven/gradle-maven-settings-plugin/images/download.svg) ](https://bintray.com/markvieira/maven/gradle-maven-settings-plugin/_latestVersion)

# Gradle Maven settings plugin

This Gradle plugin provides a migration path for projects coming from a Maven ecosystem. It exposes standard Maven
Expand All @@ -12,11 +10,13 @@ To use the plugin, add the following to your `build.gradle` file.

buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'net.linguica.gradle:maven-settings-plugin:0.3'
classpath 'net.linguica.gradle:maven-settings-plugin:0.4'
}
}

Expand All @@ -26,7 +26,7 @@ For Gradle 2.1+ you can use the new plugin mechanism to download the plugin from
[Gradle Plugin Portal](http://plugins.gradle.org/).

plugins {
id "net.linguica.maven-settings" version "0.3"
id "net.linguica.maven-settings" version "0.4"
}

## Mirrors
Expand Down
94 changes: 16 additions & 78 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'maven-publish'
id 'com.jfrog.bintray' version '0.6'
id "com.gradle.plugin-publish" version "0.9.1"
}

ext {
Expand All @@ -14,6 +12,8 @@ repositories {
}

dependencies {
compile gradleApi()
compile localGroovy()
compile "org.apache.maven:maven-settings:$mavenVersion"
compile "org.apache.maven:maven-settings-builder:$mavenVersion"
compile "org.apache.maven:maven-model-builder:$mavenVersion"
Expand All @@ -28,85 +28,23 @@ dependencies {
sourceCompatibility = '1.6'
targetCompatibility = '1.6'

task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar) {
classifier 'javadoc'
from javadoc
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar

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')
}
version = "0.4"

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')
}
pluginBundle {
website = 'https://github.com/mark-vieira/gradle-maven-settings-plugin'
vcsUrl = 'https://github.com/mark-vieira/gradle-maven-settings-plugin'
description = 'Gradle plugin for exposing Maven settings file configuration to Gradle project.'
tags = ['settings', 'maven']

asNode().appendNode('issueManagement').with {
appendNode('system', 'GitHub')
appendNode('url', 'https://github.com/mark-vieira/gradle-maven-settings-plugin/issues')
}
}
plugins {
mavenSettings {
id = 'net.linguica.maven-settings'
displayName = 'Maven Settings Plugin'
}
}
}

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}"]

gpg {
sign = true
passphrase = project.hasProperty('bintrayGpgPassphrase') ? bintrayGpgPassphrase : null
}
}
mavenCoordinates {
groupId = 'net.linguica.gradle'
artifactId = 'maven-settings-plugin'
}
}
7 changes: 6 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
#Updated secret and key with server message: Generated key 'electron.local' for 'mark-vieira'
#Mon, 20 Jul 2015 21:56:48 -0700
group=net.linguica.gradle
version=0.4-SNAPSHOT
version=0.4-SNAPSHOT

gradle.publish.key=Tjra2NkjMjQObaCAOMOZQbvu1hFiekXO
gradle.publish.secret=V1tZOHnZhYhF2VBR1GqfSPyo3p58Rchx
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip

0 comments on commit d315cb2

Please sign in to comment.