-
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
2 changed files
with
121 additions
and
2 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 |
---|---|---|
@@ -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' | ||
} | ||
} | ||
} | ||
|