Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 354 lines (307 sloc) 14.169 kb
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
1 apply plugin: 'eclipse'
2 apply plugin: 'idea'
3
4 allprojects {
5 repositories {
6 mavenCentral()
a02a8a8 Steve Ebersole HHH-5898 - Improve authentication for Gradle uploads
sebersole authored
7 mavenLocal()
7861fde Steve Ebersole HHH-7067 - Update build to work with Gradle m8
sebersole authored
8 mavenRepo name: 'jboss-nexus', url: "https://repository.jboss.org/nexus/content/groups/public/"
9 mavenRepo name: "jboss-snapshots", url: "http://snapshots.jboss.org/maven2/"
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
10 }
11 }
12
29e21e9 Steve Ebersole HHH-6038 - Migrate to use newly separated gradle-upload-auth-plugin
sebersole authored
13 buildscript {
14 repositories {
5efd0a8 HHH-6371 - Develop metamodel binding creation using a push approach
Steve Ebersole authored
15 mavenCentral()
29e21e9 Steve Ebersole HHH-6038 - Migrate to use newly separated gradle-upload-auth-plugin
sebersole authored
16 mavenLocal()
7861fde Steve Ebersole HHH-7067 - Update build to work with Gradle m8
sebersole authored
17 mavenRepo name: 'jboss-nexus', url: "https://repository.jboss.org/nexus/content/groups/public/"
18 mavenRepo name: "jboss-snapshots", url: "http://snapshots.jboss.org/maven2/"
29e21e9 Steve Ebersole HHH-6038 - Migrate to use newly separated gradle-upload-auth-plugin
sebersole authored
19 }
20 dependencies {
13f4c83 Strong Liu change to use gradle-upload-auth-plugin v1.1.1 since v1.1.0 is not avail...
stliu authored
21 classpath 'org.hibernate.build.gradle:gradle-upload-auth-plugin:1.1.1'
29e21e9 Steve Ebersole HHH-6038 - Migrate to use newly separated gradle-upload-auth-plugin
sebersole authored
22 }
23 }
24
7861fde Steve Ebersole HHH-7067 - Update build to work with Gradle m8
sebersole authored
25 idea {
4843d35 Strong Liu HHH-7067 fix idea config issue and format
stliu authored
26 project {
27 jdkName = "1.6"
28 ipr {
29 withXml { provider ->
30 provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
31 def maxHeapSizeConfig = provider.node.component.find { it.@name == 'JavacSettings' }
32 if( maxHeapSizeConfig == null ){
33 def javacSettingsNode = provider.node.appendNode('component',[name: 'JavacSettings'])
34 javacSettingsNode.appendNode('option', [name:"MAXIMUM_HEAP_SIZE", value:"512"])
35 }
36 }
37 beforeMerged { project ->
38 project.modulePaths.clear()
39 }
40 }
41 }
42 module {
43 name = "hibernate-orm"
44 }
f8acf15 Steve Ebersole HHH-5616 - Switch to Gradle for builds ... applied javadoc and source ja...
sebersole authored
45 }
46
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
47 // build a map of the dependency artifacts to use. Allows centralized definition of the version of artifacts to
48 // use. In that respect it serves a role similar to <dependencyManagement> in Maven
5b4e976 Hardy Ferentschik HHH-6307 Upgrading slf4j to 1.6.1
hferentschik authored
49 slf4jVersion = '1.6.1'
3a5bb1f Strong Liu upgrade to junit 4.10
stliu authored
50 junitVersion = '4.10'
f6dec69 Steve Ebersole HHH-6909 - "Getting Started Guide" example code cannot be run successful...
sebersole authored
51 h2Version = '1.2.145'
60c1b23 Hardy Ferentschik HHH-6271 Introducing Byteman in order to really test that a certain log ...
hferentschik authored
52 bytemanVersion = '1.5.2'
f6dec69 Steve Ebersole HHH-6909 - "Getting Started Guide" example code cannot be run successful...
sebersole authored
53
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
54 libraries = [
55 // Ant
4ee000e Strong Liu HHH-6654 upgrade ant to 1.8.2
stliu authored
56 ant: 'org.apache.ant:ant:1.8.2',
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
57
58 // Antlr
59 antlr: 'antlr:antlr:2.7.7',
60
61 // Annotations
62 commons_annotations:
d2852e3 Strong Liu a little improvment on the build script
stliu authored
63 'org.hibernate.common:hibernate-commons-annotations:4.0.1.Final@jar',
4b9517d Strong Liu HHH-6634 upgrade to jandex 1.0.3.Final
stliu authored
64 jandex: 'org.jboss:jandex:1.0.3.Final',
21ea415 Hardy Ferentschik HHH-6537 Upgrading classmate version
hferentschik authored
65 classmate: 'com.fasterxml:classmate:0.5.4',
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
66
67 // Dom4J
68 dom4j: 'dom4j:dom4j:1.6.1@jar',
69
70 // Javassist
a0b2a4b Strong Liu HHH-6900 upgrade to org.javassist:javassist:3.15.0-GA
stliu authored
71 javassist: 'org.javassist:javassist:3.15.0-GA',
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
72
73 // javax
6e15b5c Strong Liu HHH-6322 upgrade to hibernate-jpa-2.0-api-1.0.1.Final
stliu authored
74 jpa: 'org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final',
b552f70 Strong Liu HHH-6675 upgrade dependencies
stliu authored
75 jta: 'org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:1.0.0.Final',
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
76 validation: 'javax.validation:validation-api:1.0.0.GA',
6cd04c2 Strong Liu HHH-6650 upgrade jacc dependency
stliu authored
77 jacc: 'org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:1.0.0.Final',
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
78
79 // logging
8f223d1 Strong Liu HHH-7062 upgrade to jboss-logging 3.1.0.GA
stliu authored
80 logging: 'org.jboss.logging:jboss-logging:3.1.0.GA',
81 logging_processor: 'org.jboss.logging:jboss-logging-processor:1.0.0.Final',
8065f9a Strong Liu HHH-6818 update dependencies management
stliu authored
82
83 // jaxb task
84 jaxb: 'com.sun.xml.bind:jaxb-xjc:2.1.6',
85 jaxb2_basics: 'org.jvnet.jaxb2_commons:jaxb2-basics:0.6.0',
86 jaxb2_ant: 'org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.6.0',
87 // ~~~~~~~~~~~~~~~~~~~~~~~~~~ testing
88
89 // logging for testing
8563fb8 Steve Ebersole release 4.1.1
sebersole authored
90 slf4j_api: "org.slf4j:slf4j-api:${slf4jVersion}",
91 slf4j_log4j12: "org.slf4j:slf4j-log4j12:${slf4jVersion}",
92 jcl_slf4j: "org.slf4j:jcl-over-slf4j:${slf4jVersion}",
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
93 jcl_api: 'commons-logging:commons-logging-api:99.0-does-not-exist',
94 jcl: 'commons-logging:commons-logging:99.0-does-not-exist',
95
8065f9a Strong Liu HHH-6818 update dependencies management
stliu authored
96
60c1b23 Hardy Ferentschik HHH-6271 Introducing Byteman in order to really test that a certain log ...
hferentschik authored
97 junit: "junit:junit:${junitVersion}",
98 byteman: "org.jboss.byteman:byteman:${bytemanVersion}",
99 byteman_install: "org.jboss.byteman:byteman-install:${bytemanVersion}",
100 byteman_bmunit: "org.jboss.byteman:byteman-bmunit:${bytemanVersion}",
101 jpa_modelgen: 'org.hibernate:hibernate-jpamodelgen:1.1.1.Final',
102 shrinkwrap_api: 'org.jboss.shrinkwrap:shrinkwrap-api:1.0.0-beta-6',
103 shrinkwrap: 'org.jboss.shrinkwrap:shrinkwrap-impl-base:1.0.0-beta-6',
104 validator: 'org.hibernate:hibernate-validator:4.2.0.Final',
105 h2: "com.h2database:h2:${h2Version}"
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
106 ]
107
108
109 subprojects { subProject ->
7ce80c9 Steve Ebersole HHH-5616 - Switch to Gradle for builds .. IntelliJ
sebersole authored
110 apply plugin: 'idea'
4843d35 Strong Liu HHH-7067 fix idea config issue and format
stliu authored
111 apply plugin: 'eclipse'
d2c88d5 Steve Ebersole HHH-5647 - Develop release process using Gradle
sebersole authored
112
113 defaultTasks 'build'
7ce80c9 Steve Ebersole HHH-5616 - Switch to Gradle for builds .. IntelliJ
sebersole authored
114
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
115 group = 'org.hibernate'
e46d799 Steve Ebersole re-release 4.1.2 with 'Final' qualifier
sebersole authored
116 version = '4.1.3-SNAPSHOT'
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
117
118 // minimize changes, at least for now (gradle uses 'build' by default)..
7ce80c9 Steve Ebersole HHH-5616 - Switch to Gradle for builds .. IntelliJ
sebersole authored
119 buildDir = "target"
8c56875 Strong Liu HHH-6036 integration documentation generation
stliu authored
120 if ( ! subProject.name.startsWith( 'release' ) && ! subProject.name.startsWith( 'documentation' ) ) {
e21fed8 Steve Ebersole HHH-5616 - Switch to Gradle for builds .. envers
sebersole authored
121 apply plugin: 'java'
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
122 apply plugin: 'maven' // for install task as well as deploy dependencies
29e21e9 Steve Ebersole HHH-6038 - Migrate to use newly separated gradle-upload-auth-plugin
sebersole authored
123 apply plugin: 'uploadAuth'
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
124
125 configurations {
126 provided {
127 // todo : need to make sure these are non-exported
128 description = 'Non-exported compile-time dependencies.'
129 }
43b812c Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
130 jbossLoggingTool {
131 description = "Dependencies for running the JBoss logging AnnotationProcessor tool"
132 }
133 hibernateJpaModelGenTool {
134 description = "Dependencies for running the Hibernate JPA Metamodel Generator AnnotationProcessor tool"
135 }
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
136 deployerJars {
137 description = 'Jars needed for doing deployment to JBoss Nexus repo'
138 }
42502e6 Hardy Ferentschik HHH-6109 Starting work for annotation binding against the new metamodel...
hferentschik authored
139 jaxb {
140 description = 'Dependencies for running ant xjc (jaxb class generation)'
141 }
3a5bb1f Strong Liu upgrade to junit 4.10
stliu authored
142 configurations {
143 all*.exclude group: 'xml-apis', module: 'xml-apis'
144 }
145
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
146 }
749f7c1 Strong Liu HHH-6271 fixes build error when tools.jar is not on classpath (linux)
stliu authored
147 toolsJar = file("${System.getProperty('java.home')}/../lib/tools.jar")
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
148 // appropriately inject the common dependencies into each sub-project
149 dependencies {
4843d35 Strong Liu HHH-7067 fix idea config issue and format
stliu authored
150 compile( libraries.logging )
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
151 testCompile( libraries.junit )
60c1b23 Hardy Ferentschik HHH-6271 Introducing Byteman in order to really test that a certain log ...
hferentschik authored
152 testCompile( libraries.byteman )
153 testCompile( libraries.byteman_install )
154 testCompile( libraries.byteman_bmunit )
d2852e3 Strong Liu a little improvment on the build script
stliu authored
155 testCompile files( toolsJar )
f5a3e38 HHH-6050 Changed single compile-time dependency to slf4j in parent build...
JPAV authored
156 testRuntime( libraries.slf4j_api )
03c4009 Steve Ebersole HHH-6088 - Move to slf4j-log4j12 for test logging
sebersole authored
157 testRuntime( libraries.slf4j_log4j12 )
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
158 testRuntime( libraries.jcl_slf4j )
159 testRuntime( libraries.jcl_api )
160 testRuntime( libraries.jcl )
429d0fd Steve Ebersole HHH-5616 - Switch to Gradle for builds .. ehcache
sebersole authored
161 testRuntime( libraries.javassist )
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
162 testRuntime( libraries.h2 )
7b3a481 Strong Liu HHH-6658 upgrade jboss-logging-tools to 1.0.0.Beta7
stliu authored
163 jbossLoggingTool( libraries.logging_processor )
43b812c Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
164 hibernateJpaModelGenTool( libraries.jpa_modelgen )
42502e6 Hardy Ferentschik HHH-6109 Starting work for annotation binding against the new metamodel...
hferentschik authored
165 jaxb( libraries.jaxb )
9e95d41 Steve Ebersole HHH-6371 - Develop metamodel binding creation using a push approach
sebersole authored
166 jaxb( libraries.jaxb2_basics )
167 jaxb( libraries.jaxb2_ant )
1e1a6eb Strong Liu HHH-6659 upgrade maven wagon plugin to 1.0
stliu authored
168 deployerJars "org.apache.maven.wagon:wagon-http:1.0"
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
169 }
c7f09e5 Attempt to compile twice, once only for annotations, then for everything...
JPAV authored
170
e4a82a0 Strong Liu HHH-7197 - update build scripts to not use deprecated gradle apis and ch...
stliu authored
171 aptDumpDir = file( "${buildDir}/tmp/apt" )
b1a9f36 Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
172
173 sourceSets.main {
174 compileClasspath += configurations.provided
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
175 }
176
b1a9f36 Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
177 sourceSets.all {
178 originalJavaSrcDirs = java.srcDirs
179 generatedLoggingSrcDir = file( "${buildDir}/generated-src/logging/${name}" )
180 java.srcDir generatedLoggingSrcDir
181 }
43b812c Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
182
b1a9f36 Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
183 task generateMainLoggingClasses(type: Compile) {
2d084cb Strong Liu HHH-6787 upgrade to JBoss Logging tools 1.0.0.CR3
stliu authored
184 classpath = compileJava.classpath + configurations.jbossLoggingTool
185 source = sourceSets.main.originalJavaSrcDirs
b1a9f36 Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
186 destinationDir = aptDumpDir
2d084cb Strong Liu HHH-6787 upgrade to JBoss Logging tools 1.0.0.CR3
stliu authored
187 options.define(
43b812c Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
188 compilerArgs: [
189 "-nowarn",
190 "-proc:only",
2d084cb Strong Liu HHH-6787 upgrade to JBoss Logging tools 1.0.0.CR3
stliu authored
191 "-encoding", "UTF-8",
8f223d1 Strong Liu HHH-7062 upgrade to jboss-logging 3.1.0.GA
stliu authored
192 "-processor", "org.jboss.logging.processor.apt.LoggingToolsProcessor",
564cdac Steve Ebersole HHH-6816 - Upgrade to jboss-logging 3.1.0.CR1
sebersole authored
193 "-s", "$sourceSets.main.generatedLoggingSrcDir.absolutePath",
3a5bb1f Strong Liu upgrade to junit 4.10
stliu authored
194 "-AloggingVersion=3.0",
195 "-source", "1.6",
196 "-target", "1.6",
197 "-AtranslationFilesPath=${project.rootDir}/src/main/resources"
198
43b812c Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
199 ]
b1a9f36 Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
200 );
201 outputs.dir sourceSets.main.generatedLoggingSrcDir;
202 doFirst {
2d084cb Strong Liu HHH-6787 upgrade to JBoss Logging tools 1.0.0.CR3
stliu authored
203 source = sourceSets.main.originalJavaSrcDirs
b1a9f36 Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
204 sourceSets.main.generatedLoggingSrcDir.mkdirs()
205 }
43b812c Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
206 }
207
b1a9f36 Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
208 // for the time being eat the annoying output from running the annotation processors
209 generateMainLoggingClasses.logging.captureStandardError(LogLevel.INFO)
210
4843d35 Strong Liu HHH-7067 fix idea config issue and format
stliu authored
211 compileJava.dependsOn generateMainLoggingClasses
006c96b Stevo Slavić HHH-6228 Compile tasks using now UTF-8 encoding. Initially they used pla...
sslavic authored
212 compileJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
4843d35 Strong Liu HHH-7067 fix idea config issue and format
stliu authored
213 compileTestJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
43b812c Steve Ebersole HHH-6000 - split annotation processor execution out into separate tasks
sebersole authored
214
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
215 manifest.mainAttributes(
216 provider: 'gradle',
217 'Implementation-Url': 'http://hibernate.org',
218 'Implementation-Version': version,
219 'Implementation-Vendor': 'Hibernate.org',
220 'Implementation-Vendor-Id': 'org.hibernate'
221 )
222
223 test {
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
224 systemProperties['hibernate.test.validatefailureexpected'] = true
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
225 maxHeapSize = "1024m"
226 }
227
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
228 processTestResources.doLast( {
229 copy {
230 from( sourceSets.test.java.srcDirs ) {
231 include '**/*.properties'
232 include '**/*.xml'
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
233 }
e4a82a0 Strong Liu HHH-7197 - update build scripts to not use deprecated gradle apis and ch...
stliu authored
234 into sourceSets.test.output.classesDir
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
235 }
236 } )
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
237
238 assemble.doLast( { install } )
239 uploadArchives.dependsOn install
240
241 targetCompatibility = "1.6"
242 sourceCompatibility = "1.6"
243
4843d35 Strong Liu HHH-7067 fix idea config issue and format
stliu authored
244 idea {
245 module {
246 iml {
247 beforeMerged { module ->
248 module.dependencies.clear()
249 module.excludeFolders.clear()
250 }
251 whenMerged { module ->
252 module.dependencies*.exported = true
253 module.excludeFolders += module.pathFactory.path(file(".gradle"))
254 module.excludeFolders += module.pathFactory.path(file("$buildDir/bundles"))
255 module.excludeFolders += module.pathFactory.path(file("$buildDir/classes"))
256 module.excludeFolders += module.pathFactory.path(file("$buildDir/dependency-cache"))
257 module.excludeFolders += module.pathFactory.path(file("$buildDir/libs"))
258 module.excludeFolders += module.pathFactory.path(file("$buildDir/reports"))
259 module.excludeFolders += module.pathFactory.path(file("$buildDir/test-results"))
260 module.excludeFolders += module.pathFactory.path(file("$buildDir/tmp"))
261 module.excludeFolders += module.pathFactory.path(file("$buildDir/matrix"))
975141f Strong Liu better idea support
stliu authored
262 module.excludeFolders += module.pathFactory.path(file("$buildDir/resources"))
263 module.excludeFolders -= module.pathFactory.path(file("$buildDir"))
4843d35 Strong Liu HHH-7067 fix idea config issue and format
stliu authored
264 }
265 }
266 downloadSources = true
267 scopes.COMPILE.plus += configurations.provided
268 }
269 }
270
271 eclipse {
272 classpath {
273 plusConfigurations.add( configurations.provided )
274 }
275 }
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
276
277 // elements used to customize the generated POM used during upload
278 def pomConfig = {
c7818f3 Steve Ebersole prep 4.0.0.Beta1 release
sebersole authored
279 name 'A Hibernate Core Module'
15bc4ed Steve Ebersole prep 4.0.0.Beta1 release
sebersole authored
280 description 'A module of the Hibernate Core project'
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
281 url 'http://hibernate.org'
7ce80c9 Steve Ebersole HHH-5616 - Switch to Gradle for builds .. IntelliJ
sebersole authored
282 organization {
283 name 'Hibernate.org'
284 url 'http://hibernate.org'
285 }
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
286 issueManagement {
287 system 'jira'
288 url 'http://opensource.atlassian.com/projects/hibernate/browse/HHH'
289 }
290 scm {
291 url "http://github.com/hibernate/hibernate-core"
292 connection "scm:git:http://github.com/hibernate/hibernate-core.git"
293 developerConnection "scm:git:git@github.com:hibernate/hibernate-core.git"
294 }
295 licenses {
296 license {
297 name 'GNU Lesser General Public License'
298 url 'http://www.gnu.org/licenses/lgpl-2.1.html'
d3b5c68 gbadner HHH-5890 : License comment refers to non-exiting page
gbadner authored
299 comments 'See discussion at http://hibernate.org/license for more details.'
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
300 distribution 'repo'
301 }
302 }
303 developers {
c7818f3 Steve Ebersole prep 4.0.0.Beta1 release
sebersole authored
304 developer {
305 id 'hibernate-team'
306 name 'The Hibernate Development Team'
307 organization 'Hibernate.org'
308 organizationUrl 'http://hibernate.org'
309 }
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
310 }
311 }
312
4fd609e Steve Ebersole HHH-5904 - Deploy just testing artifacts from hibernate-core, not all te...
sebersole authored
313 subProject.basePomConfig = pomConfig
314
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
315 configure(install.repositories.mavenInstaller) {
316 pom.project pomConfig
317 }
318
319 uploadArchives {
320 repositories.mavenDeployer {
321 name = 'jbossDeployer'
322 configuration = configurations.deployerJars
323 pom.project pomConfig
4fd609e Steve Ebersole HHH-5904 - Deploy just testing artifacts from hibernate-core, not all te...
sebersole authored
324 repository(id: "jboss-releases-repository", url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/")
325 snapshotRepository(id: "jboss-snapshots-repository", url: "https://repository.jboss.org/nexus/content/repositories/snapshots")
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
326 }
327 }
328
f8acf15 Steve Ebersole HHH-5616 - Switch to Gradle for builds ... applied javadoc and source ja...
sebersole authored
329 task sourcesJar(type: Jar, dependsOn: compileJava) {
330 from sourceSets.main.allSource
331 classifier = 'sources'
332 }
333
334 artifacts {
335 archives sourcesJar
336 }
337
b5f8d98 Strong Liu HHH-6332 rollback
stliu authored
338 uploadArchives.dependsOn sourcesJar
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
339 }
901513e Steve Ebersole HHH-5616 - Switch to Gradle for builds .. uploads
sebersole authored
340
34c2839 Steve Ebersole HHH-5616 - Switch to Gradle for builds
sebersole authored
341 }
342
248ef97 Steve Ebersole HHH-5616 - Switch to Gradle for builds .. gradlew
sebersole authored
343 dependsOnChildren()
344
345 // This is a task that generates the gradlew scripts, allowing users to run gradle without having gradle installed
346 // on their system.
44cca7a Steve Ebersole HHH-6106 - Fix up IntelliJ project generation
sebersole authored
347 // This task should be run by "build master" and the resulting output committed to source control. Its outputs include:
248ef97 Steve Ebersole HHH-5616 - Switch to Gradle for builds .. gradlew
sebersole authored
348 // 1) /gradlew which is the *NIX shell script for executing builds
349 // 2) /gradlew.bat which is the windows bat script for for executing builds
350 // 3) /wrapper which is a directory named by the "jarPath" config which contains other needed files.
351 task wrapper(type: Wrapper) {
a12f50c Strong Liu upgrade to use gradle 1.0 M8a
stliu authored
352 gradleVersion = '1.0-milestone-8a'
ee6bde2 gbadner change h2 to 1.2.140; add DVCC=TRUE to TestingDatabaseInfo
gbadner authored
353 }
Something went wrong with that request. Please try again.