Skip to content

Commit

Permalink
Merge branch 'release-1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mahnkong committed Mar 11, 2016
2 parents 0da53d6 + 617384b commit 4830e08
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 2 deletions.
35 changes: 33 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.3"
classpath "com.gradle.publish:plugin-publish-plugin:0.9.4"
}
}

plugins {
id "com.jfrog.bintray" version "1.6"
}

group = 'com.github.mahnkong'
version = '1.1.1'
version = '1.1.2'

apply plugin: 'groovy'
apply plugin: 'maven'
Expand Down Expand Up @@ -82,3 +86,30 @@ pluginBundle {
}
}

// https://github.com/bintray/gradle-bintray-plugin
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')

publications = ['artifacts']
pkg {
repo = "maven"
// it is the name that appears in bintray when logged
name = "gradle-teg2neo4j-plugin"
websiteUrl = 'https://github.com/mahnkong/gradle-teg2neo4j-plugin'
vcsUrl = 'https://github.com/mahnkong/gradle-teg2neo4j-plugin'
licenses = ["Apache-2.0"]
publish = true
version {
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = System.getenv("BINTRAY_GPG_PASSWORD") //Optional. The passphrase for GPG signing'
}
mavenCentralSync {
sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
user = System.getenv("BINTRAY_USER") //OSS user token
password = System.getenv("BINTRAY_OSS_PASSWORD") //OSS user password
}
}
}
}
88 changes: 88 additions & 0 deletions build.gradle.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.3"
}
}

group = 'com.github.mahnkong'
<<<<<<< HEAD
version = '1.2.0-SNAPSHOT'
=======
version = '1.1.1'
>>>>>>> release-1.1

apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: "com.gradle.plugin-publish"

repositories {
jcenter()
maven { url "http://m2.neo4j.org/content/groups/public" }
}

ext {
neo4jVersion = '2.3.2'
}

sourceCompatibility = 1.7
targetCompatibility = 1.7


// Write the plugin's classpath to a file to share with the tests
task createClasspathManifest {
def outputDir = file("$buildDir/$name")

inputs.files sourceSets.main.runtimeClasspath
outputs.dir outputDir

doLast {
outputDir.mkdirs()
file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
}
}

dependencies {
compile gradleApi()
compile localGroovy()
compile "org.neo4j:neo4j-jdbc:${neo4jVersion}"

testCompile "org.neo4j.test:neo4j-harness:${neo4jVersion}"
testCompile 'junit:junit:4.12'
testCompile gradleTestKit()

testRuntime files(createClasspathManifest)
}

jar {
from "LICENSE"
}

publishing {
publications {
artifacts(MavenPublication) {
from components.java
}
}
repositories {
mavenLocal()
}
}

pluginBundle {
website = 'https://github.com/mahnkong/gradle-teg2neo4j-plugin'
vcsUrl = 'https://github.com/mahnkong/gradle-teg2neo4j-plugin'
description = 'A Gradle-Plugin which enables the "Gradle Task Execution Graph" of a project\'s build to be stored inside a Neo4j instance'
tags = ['neo4j', 'task', 'graph']

plugins {
gteg2neo4jPlugin {
id = 'com.github.mahnkong.gteg2neo4j'
displayName = 'Gradle TaskExecutionGraph to Neo4j plugin'
}
}
}

0 comments on commit 4830e08

Please sign in to comment.