HHH-5616 - Switch to Gradle for builds ... applied javadoc and source jar creation tasks

This commit is contained in:
Steve Ebersole 2010-10-11 09:30:26 -05:00
parent d18170e490
commit f8acf15d41
1 changed files with 21 additions and 0 deletions

View File

@ -17,6 +17,9 @@ ideaProject {
}
}
ideaModule {
}
// build a map of the dependency artifacts to use. Allows centralized definition of the version of artifacts to
// use. In that respect it serves a role similar to <dependencyManagement> in Maven
slf4jVersion = '1.5.8'
@ -72,6 +75,7 @@ libraries = [
subprojects { subProject ->
apply plugin: 'idea'
apply { url: 'https://loom.svn.sourceforge.net/svnroot/loom/shared/trunk/artifacts.gradle' } // sets up source and javadoc jar uploads
group = 'org.hibernate'
version = '4.0.0-SNAPSHOT'
@ -210,6 +214,23 @@ subprojects { subProject ->
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier = 'javadoc'
}
task sourcesJar(type: Jar, dependsOn: compileJava) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives javadocJar
archives sourcesJar
}
uploadArchives.dependsOn javadocJar
uploadArchives.dependsOn sourcesJar
}
}