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 8
/
build.gradle
121 lines (101 loc) · 3.51 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
112
113
114
115
116
117
118
119
120
121
buildscript {
ext['propdeps.version'] = '0.0.7'
ext['gradle.props.version'] = '1.4.5'
ext['bintray.version'] = '1.7'
repositories {
jcenter()
maven {url "https://plugins.gradle.org/m2/"}
maven {url "http://repo.spring.io/plugins-release"}
}
dependencies {
classpath("org.springframework.build.gradle:propdeps-plugin:${property('propdeps.version')}")
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.0'
ext['hibernate.version'] = '5.2.2.Final'
ext['slf4j.version'] = '1.7.21'
ext['spring.version'] = '4.3.2.RELEASE'
ext['lombok.version'] = '1.16.10'
ext['junit.version'] = '4.12'
ext['assertj.version'] = '2.5.0'
ext['slf4j.test.version'] = '1.1.0'
ext['h2.version'] = '1.4.192'
group "com.github.deathman92.localized"
version "${property('project.version')}"
description 'Localized is an i18n extension for Hibernate. The @Localized\n' +
'\t\tannotation provides transparent i18n support on\n' +
'\t\t@Entity properties.'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
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 {
jcenter()
}
dependencies {
compile("org.slf4j:slf4j-api:${property('slf4j.version')}")
provided("org.hibernate:hibernate-core:${property('hibernate.version')}")
provided("org.projectlombok:lombok:${property('lombok.version')}")
provided("org.springframework:spring-context:${property('spring.version')}")
testCompile("junit:junit:${property('junit.version')}")
testCompile("org.assertj:assertj-core:${property('assertj.version')}")
testCompile("uk.org.lidalia:slf4j-test:${property('slf4j.test.version')}")
testRuntime("com.h2database:h2:${property('h2.version')}")
}
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", "l18n", "spring", "localization", "annotation"]
websiteUrl = "https://github.com/deathman92/localized"
issueTrackerUrl = "https://github.com/deathman92/localized/issues"
vcsUrl = "https://github.com/deathman92/localized.git"
githubRepo = "deathman92/localized"
githubReleaseNotesFile = "README.md"
version {
name = "${project.version}"
released = new Date()
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.0'
}