This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
111 lines (91 loc) · 2.92 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
ext['gradle.props.version'] = '1.4.5'
ext['bintray.version'] = '1.7'
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath("net.saliman:gradle-properties-plugin:${property('gradle.props.version')}")
classpath("com.jfrog.bintray.gradle:gradle-bintray-plugin:${property('bintray.version')}")
}
}
ext['project.version'] = '1.0.1'
ext['hibernate.version'] = '5.2.2.Final'
ext['reflections.version'] = '0.9.10'
ext['junit.version'] = '4.12'
ext['spock.version'] = '1.0-groovy-2.4'
group 'com.github.deathman92.plugin'
version "${property('project.version')}"
description "Gradle plugin for generate DDL scripts from JPA entities"
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply plugin: 'net.saliman.properties'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
ext {
bintrayUser = "${System.env['CI_BINTRAY_USER'] ?: property('bintray.user')}"
bintrayKey = "${System.env['CI_BINTRAY_KEY'] ?: property('bintray.key')}"
}
repositories {
mavenLocal()
jcenter()
}
dependencies {
compile gradleApi()
compile("org.hibernate:hibernate-entitymanager:${property('hibernate.version')}")
compile("org.reflections:reflections:${property('reflections.version')}")
testCompile("junit:junit:${property('junit.version')}")
testCompile gradleTestKit()
testCompile("org.spockframework:spock-core:${property('spock.version')}") {
exclude module: 'groovy-all'
}
}
test {
testLogging.showStandardStreams = true
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
}
task sourcesJar (type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId "${project.group}"
artifactId "${project.name}"
version "${project.version}"
from components.java
artifact sourcesJar
}
}
}
bintray {
user = "${bintrayUser}"
key = "${bintrayKey}"
publications = ["mavenJava"]
pkg {
repo = "maven-release"
name = "${project.name}"
desc = "${project.description}"
licenses = ["MIT"]
labels = ["hibernate", "schema", "ddl", "annotation"]
websiteUrl = "https://github.com/deathman92/hibernate-schema-gradle-plugin"
issueTrackerUrl = "https://github.com/deathman92/hibernate-schema-gradle-plugin/issues"
vcsUrl = "https://github.com/deathman92/hibernate-schema-gradle-plugin.git"
githubRepo = "deathman92/hibernate-schema-gradle-plugin"
githubReleaseNotesFile = "README.md"
version {
name = "${project.version}"
released = new Date()
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.0'
}