Permalink
Browse files

HHH-5647 - Develop release process using Gradle

  • Loading branch information...
1 parent bea71a4 commit d2c88d55dfee8b105b1072b1a7afea82632e2869 @sebersole sebersole committed Oct 12, 2010
Showing with 768 additions and 22,481 deletions.
  1. +0 −1 .gitignore
  2. +9 −31 build.gradle
  3. +5 −0 buildSrc/build.gradle
  4. +78 −0 buildSrc/src/main/groovy/org/hibernate/build/gradle/javadoc/Aggregator.groovy
  5. +259 −0 buildSrc/src/main/groovy/org/hibernate/build/gradle/javadoc/Javadoc.groovy
  6. +125 −0 buildSrc/src/main/java/org/hibernate/build/gradle/upload/Authenticator.java
  7. +68 −0 buildSrc/src/main/java/org/hibernate/build/gradle/upload/UploadManager.java
  8. +0 −175 cache-jbosscache/pom.xml
  9. +0 −580 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/BasicRegionAdapter.java
  10. +0 −91 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/CacheInstanceManager.java
  11. +0 −164 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/JBossCacheRegionFactory.java
  12. +0 −74 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/JndiMultiplexedJBossCacheRegionFactory.java
  13. +0 −67 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/JndiSharedJBossCacheRegionFactory.java
  14. +0 −71 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/MultiplexedJBossCacheRegionFactory.java
  15. +0 −72 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/SharedJBossCacheRegionFactory.java
  16. +0 −60 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/TransactionalDataRegionAdapter.java
  17. +0 −212 ...bosscache/src/main/java/org/hibernate/cache/jbc/access/OptimisticTransactionalAccessDelegate.java
  18. +0 −744 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/access/PutFromLoadValidator.java
  19. +0 −222 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/access/TransactionalAccessDelegate.java
  20. +0 −103 ...bosscache/src/main/java/org/hibernate/cache/jbc/builder/JndiMultiplexingCacheInstanceManager.java
  21. +0 −112 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/builder/JndiSharedCacheInstanceManager.java
  22. +0 −555 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/builder/MultiplexingCacheInstanceManager.java
  23. +0 −274 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/builder/SharedCacheInstanceManager.java
  24. +0 −76 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/collection/CollectionRegionImpl.java
  25. +0 −71 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/collection/OptimisticReadOnlyAccess.java
  26. +0 −48 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/collection/OptimisticTransactionalAccess.java
  27. +0 −83 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/collection/ReadOnlyAccess.java
  28. +0 −155 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/collection/TransactionalAccess.java
  29. +0 −81 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/entity/EntityRegionImpl.java
  30. +0 −78 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/entity/OptimisticReadOnlyAccess.java
  31. +0 −46 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/entity/OptimisticTransactionalAccess.java
  32. +0 −78 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/entity/ReadOnlyAccess.java
  33. +0 −130 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/entity/TransactionalAccess.java
  34. +0 −160 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/query/QueryResultsRegionImpl.java
  35. +0 −361 ...ache/src/main/java/org/hibernate/cache/jbc/timestamp/ClusteredConcurrentTimestampsRegionImpl.java
  36. +0 −222 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/timestamp/TimestampsRegionImpl.java
  37. +0 −491 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/util/CacheHelper.java
  38. +0 −54 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/util/CircumventChecksDataVersion.java
  39. +0 −166 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/util/DataVersionAdapter.java
  40. +0 −65 cache-jbosscache/src/main/java/org/hibernate/cache/jbc/util/NonLockingDataVersion.java
  41. +0 −69 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JBossCacheRegionFactory.java
  42. +0 −58 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiMultiplexedJBossCacheRegionFactory.java
  43. +0 −58 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiSharedJBossCacheRegionFactory.java
  44. +0 −57 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/MultiplexedJBossCacheRegionFactory.java
  45. +0 −58 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/SharedJBossCacheRegionFactory.java
  46. +0 −1,143 cache-jbosscache/src/main/resources/org/hibernate/cache/jbc/builder/jbc-configs.xml
  47. +0 −327 cache-jbosscache/src/main/resources/org/hibernate/cache/jbc/builder/jgroups-stacks.xml
  48. +0 −147 ...jbosscache/src/test/java/org/hibernate/test/cache/jbc/AbstractEntityCollectionRegionTestCase.java
  49. +0 −259 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/AbstractGeneralDataRegionTestCase.java
  50. +0 −115 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/AbstractJBossCacheTestCase.java
  51. +0 −160 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/AbstractRegionImplTestCase.java
  52. +0 −177 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/JBossCacheComplianceTest.java
  53. +0 −93 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/JBossCacheRegionFactoryTestCase.java
  54. +0 −172 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/JbcConfigsXmlValidityTestCase.java
  55. +0 −586 ...bosscache/src/test/java/org/hibernate/test/cache/jbc/access/PutFromLoadValidatorUnitTestCase.java
  56. +0 −76 ...e-jbosscache/src/test/java/org/hibernate/test/cache/jbc/builder/CacheInstanceManagerTestBase.java
  57. +0 −51 ...e/src/test/java/org/hibernate/test/cache/jbc/builder/MultiplexedCacheInstanceManagerTestCase.java
  58. +0 −50 ...scache/src/test/java/org/hibernate/test/cache/jbc/builder/SharedCacheInstanceManagerTestCase.java
  59. +0 −587 .../java/org/hibernate/test/cache/jbc/collection/AbstractCollectionRegionAccessStrategyTestCase.java
  60. +0 −49 ...sscache/src/test/java/org/hibernate/test/cache/jbc/collection/AbstractReadOnlyAccessTestCase.java
  61. +0 −49 ...he/src/test/java/org/hibernate/test/cache/jbc/collection/AbstractTransactionalAccessTestCase.java
  62. +0 −118 ...bosscache/src/test/java/org/hibernate/test/cache/jbc/collection/CollectionRegionImplTestCase.java
  63. +0 −62 ...e/src/test/java/org/hibernate/test/cache/jbc/collection/MvccInvalidatedTransactionalTestCase.java
  64. +0 −72 ...bosscache/src/test/java/org/hibernate/test/cache/jbc/collection/MvccReadOnlyExtraAPITestCase.java
  65. +0 −63 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/collection/MvccReadOnlyTestCase.java
  66. +0 −58 ...he/src/test/java/org/hibernate/test/cache/jbc/collection/MvccReplicatedTransactionalTestCase.java
  67. +0 −72 ...ache/src/test/java/org/hibernate/test/cache/jbc/collection/MvccTransactionalExtraAPITestCase.java
  68. +0 −61 ...test/java/org/hibernate/test/cache/jbc/collection/OptimisticInvalidatedTransactionalTestCase.java
  69. +0 −93 ...che/src/test/java/org/hibernate/test/cache/jbc/collection/OptimisticReadOnlyExtraAPITestCase.java
  70. +0 −60 ...-jbosscache/src/test/java/org/hibernate/test/cache/jbc/collection/OptimisticReadOnlyTestCase.java
  71. +0 −58 .../test/java/org/hibernate/test/cache/jbc/collection/OptimisticReplicatedTransactionalTestCase.java
  72. +0 −158 ...rc/test/java/org/hibernate/test/cache/jbc/collection/OptimisticTransactionalExtraAPITestCase.java
  73. +0 −62 ...est/java/org/hibernate/test/cache/jbc/collection/PessimisticInvalidatedTransactionalTestCase.java
  74. +0 −72 ...he/src/test/java/org/hibernate/test/cache/jbc/collection/PessimisticReadOnlyExtraAPITestCase.java
  75. +0 −63 ...jbosscache/src/test/java/org/hibernate/test/cache/jbc/collection/PessimisticReadOnlyTestCase.java
  76. +0 −58 ...test/java/org/hibernate/test/cache/jbc/collection/PessimisticReplicatedTransactionalTestCase.java
  77. +0 −72 ...c/test/java/org/hibernate/test/cache/jbc/collection/PessimisticTransactionalExtraAPITestCase.java
  78. +0 −809 ...src/test/java/org/hibernate/test/cache/jbc/entity/AbstractEntityRegionAccessStrategyTestCase.java
  79. +0 −93 ...-jbosscache/src/test/java/org/hibernate/test/cache/jbc/entity/AbstractReadOnlyAccessTestCase.java
  80. +0 −140 ...scache/src/test/java/org/hibernate/test/cache/jbc/entity/AbstractTransactionalAccessTestCase.java
  81. +0 −116 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/entity/EntityRegionImplTestCase.java
  82. +0 −68 ...cache/src/test/java/org/hibernate/test/cache/jbc/entity/MvccInvalidatedTransactionalTestCase.java
  83. +0 −71 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/entity/MvccReadOnlyExtraAPITestCase.java
  84. +0 −68 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/entity/MvccReadOnlyTestCase.java
  85. +0 −62 ...scache/src/test/java/org/hibernate/test/cache/jbc/entity/MvccReplicatedTransactionalTestCase.java
  86. +0 −71 ...osscache/src/test/java/org/hibernate/test/cache/jbc/entity/MvccTransactionalExtraAPITestCase.java
  87. +0 −60 ...src/test/java/org/hibernate/test/cache/jbc/entity/OptimisticInvalidatedTransactionalTestCase.java
  88. +0 −105 ...sscache/src/test/java/org/hibernate/test/cache/jbc/entity/OptimisticReadOnlyExtraAPITestCase.java
  89. +0 −60 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/entity/OptimisticReadOnlyTestCase.java
  90. +0 −58 .../src/test/java/org/hibernate/test/cache/jbc/entity/OptimisticReplicatedTransactionalTestCase.java
  91. +0 −172 ...he/src/test/java/org/hibernate/test/cache/jbc/entity/OptimisticTransactionalExtraAPITestCase.java
  92. +0 −64 ...rc/test/java/org/hibernate/test/cache/jbc/entity/PessimisticInvalidatedTransactionalTestCase.java
  93. +0 −72 ...scache/src/test/java/org/hibernate/test/cache/jbc/entity/PessimisticReadOnlyExtraAPITestCase.java
  94. +0 −65 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/entity/PessimisticReadOnlyTestCase.java
  95. +0 −58 ...src/test/java/org/hibernate/test/cache/jbc/entity/PessimisticReplicatedTransactionalTestCase.java
  96. +0 −72 ...e/src/test/java/org/hibernate/test/cache/jbc/entity/PessimisticTransactionalExtraAPITestCase.java
  97. +0 −126 .../src/test/java/org/hibernate/test/cache/jbc/functional/AbstractEntityCacheFunctionalTestCase.java
  98. +0 −104 ...e/src/test/java/org/hibernate/test/cache/jbc/functional/AbstractQueryCacheFunctionalTestCase.java
  99. +0 −160 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/CacheTestCaseBase.java
  100. +0 −48 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/Contact.hbm.xml
  101. +0 −86 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/Contact.java
  102. +0 −50 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/Customer.hbm.xml
  103. +0 −78 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/Customer.java
  104. +0 −238 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/DualNodeTestCaseBase.java
  105. +0 −49 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/Item.hbm.xml
  106. +0 −57 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/Item.java
  107. +0 −615 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/MVCCConcurrentWriteTest.java
  108. +0 −47 ...e-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/MVCCEntityReplicationTest.java
  109. +0 −64 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/MVCCJBossCacheTest.java
  110. +0 −56 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/MVCCSessionRefreshTest.java
  111. +0 −47 ...scache/src/test/java/org/hibernate/test/cache/jbc/functional/OptimisticEntityReplicationTest.java
  112. +0 −64 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/OptimisticJBossCacheTest.java
  113. +0 −56 ...bosscache/src/test/java/org/hibernate/test/cache/jbc/functional/OptimisticSessionRefreshTest.java
  114. +0 −325 ...cache/src/test/java/org/hibernate/test/cache/jbc/functional/PessimisticEntityReplicationTest.java
  115. +0 −64 ...e-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/PessimisticJBossCacheTest.java
  116. +0 −56 ...rc/test/java/org/hibernate/test/cache/jbc/functional/PessimisticRepeatableSessionRefreshTest.java
  117. +0 −179 ...osscache/src/test/java/org/hibernate/test/cache/jbc/functional/PessimisticSessionRefreshTest.java
  118. +0 −39 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/VersionedItem.java
  119. +0 −58 ...jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/bulk/MVCCBulkOperationsTest.java
  120. +0 −58 ...ache/src/test/java/org/hibernate/test/cache/jbc/functional/bulk/OptimisticBulkOperationsTest.java
  121. +0 −356 ...che/src/test/java/org/hibernate/test/cache/jbc/functional/bulk/PessimisticBulkOperationsTest.java
  122. +0 −46 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/classloader/Account.hbm.xml
  123. +0 −124 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/classloader/Account.java
  124. +0 −97 ...e-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/classloader/AccountHolder.java
  125. +0 −111 ...scache/src/test/java/org/hibernate/test/cache/jbc/functional/classloader/CacheAccessListener.java
  126. +0 −325 ...sscache/src/test/java/org/hibernate/test/cache/jbc/functional/classloader/ClassLoaderTestDAO.java
  127. +0 −54 ...rc/test/java/org/hibernate/test/cache/jbc/functional/classloader/MVCCIsolatedClassLoaderTest.java
  128. +0 −54 ...t/java/org/hibernate/test/cache/jbc/functional/classloader/OptimisticIsolatedClassLoaderTest.java
  129. +0 −394 .../java/org/hibernate/test/cache/jbc/functional/classloader/PessimisticIsolatedClassLoaderTest.java
  130. +0 −147 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/mvcc-treecache.xml
  131. +0 −166 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/optimistic-treecache.xml
  132. +0 −148 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/pessimistic-treecache.xml
  133. +0 −60 ...che/src/test/java/org/hibernate/test/cache/jbc/functional/util/CustomClassLoaderCacheManager.java
  134. +0 −86 ...he/src/test/java/org/hibernate/test/cache/jbc/functional/util/DualNodeConnectionProviderImpl.java
  135. +0 −162 ...scache/src/test/java/org/hibernate/test/cache/jbc/functional/util/DualNodeJtaTransactionImpl.java
  136. +0 −158 ...src/test/java/org/hibernate/test/cache/jbc/functional/util/DualNodeJtaTransactionManagerImpl.java
  137. +0 −31 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/util/DualNodeTestUtil.java
  138. +0 −56 .../src/test/java/org/hibernate/test/cache/jbc/functional/util/DualNodeTransactionManagerLookup.java
  139. +0 −102 ...jbosscache/src/test/java/org/hibernate/test/cache/jbc/functional/util/IsolatedCacheTestSetup.java
  140. +0 −111 ...osscache/src/test/java/org/hibernate/test/cache/jbc/functional/util/TestCacheInstanceManager.java
  141. +0 −64 ...cache/src/test/java/org/hibernate/test/cache/jbc/functional/util/TestJBossCacheRegionFactory.java
  142. +0 −333 cache-jbosscache/src/test/java/org/hibernate/test/cache/jbc/query/QueryRegionImplTestCase.java
  143. +0 −281 .../test/java/org/hibernate/test/cache/jbc/timestamp/ClusteredConcurrentTimestampRegionTestCase.java
  144. +0 −79 ...jbosscache/src/test/java/org/hibernate/test/cache/jbc/timestamp/TimestampsRegionImplTestCase.java
  145. +0 −61 cache-jbosscache/src/test/java/org/hibernate/test/tm/jbc/BatchModeTransactionManagerLookup.java
  146. +0 −98 cache-jbosscache/src/test/java/org/hibernate/test/util/CacheManagerTestSetup.java
  147. +0 −153 cache-jbosscache/src/test/java/org/hibernate/test/util/CacheTestSupport.java
  148. +0 −162 cache-jbosscache/src/test/java/org/hibernate/test/util/CacheTestUtil.java
  149. +0 −288 cache-jbosscache/src/test/java/org/hibernate/test/util/SelectedClassnameClassLoader.java
  150. +0 −73 cache-jbosscache/src/test/java/org/hibernate/test/util/SelectedClassnameClassLoaderTestSetup.java
  151. +0 −160 cache-jbosscache/src/test/java/org/hibernate/test/util/optimistic-local-cache.xml
  152. +0 −141 cache-jbosscache/src/test/java/org/hibernate/test/util/pessimistic-local-cache.xml
  153. +0 −34 cache-jbosscache/src/test/resources/hibernate.properties
  154. +0 −38 cache-jbosscache/src/test/resources/log4j.properties
  155. +0 −139 cache-jbosscache/src/test/resources/treecache.xml
  156. +0 −344 distribution/pom.xml
  157. +0 −214 distribution/src/assembly/dist.xml
  158. +0 −56 distribution/src/assembly/hibernate-all.xml
  159. BIN distribution/src/javadoc/images/bkg_blkheader.png
  160. BIN distribution/src/javadoc/images/bkg_gradient.gif
  161. BIN distribution/src/javadoc/images/bkgheader.png
  162. BIN distribution/src/javadoc/images/h1_hdr.png
  163. +0 −93 distribution/src/javadoc/package.html
  164. +0 −174 distribution/src/javadoc/stylesheet.css
  165. +0 −33 distribution/src/site/apt/documentation.apt
  166. +0 −59 distribution/src/site/apt/index.apt
  167. +0 −31 distribution/src/site/resources/css/site.css
  168. BIN distribution/src/site/resources/images/favicon.ico
  169. BIN distribution/src/site/resources/images/hibernate_icon.png
  170. BIN distribution/src/site/resources/images/hibernate_logo.png
  171. BIN distribution/src/site/resources/images/maven-button-4.png
  172. +0 −61 distribution/src/site/site.xml
  173. +222 −0 release/release.gradle
  174. +2 −0 settings.gradle
View
@@ -1,6 +1,5 @@
.gradle
target
-build
.idea
.idea/*
*.ipr
View
@@ -45,7 +45,7 @@ libraries = [
dom4j: 'dom4j:dom4j:1.6.1@jar',
// h2
- h2: 'com.h2database:h2:1.2.134',
+ h2: 'com.h2database:h2:1.2.140',
// Javassist
javassist: 'javassist:javassist:3.12.0.GA',
@@ -75,20 +75,20 @@ 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
+ apply plugin: 'maven'
+
+ defaultTasks 'build'
group = 'org.hibernate'
version = '4.0.0-SNAPSHOT'
- defaultTasks 'build'
-
// minimize changes, at least for now (gradle uses 'build' by default)..
buildDir = "target"
-
- if ( ! subProject.name.startsWith( 'hibernate-release' ) ) {
+
+ if ( ! subProject.name.startsWith( 'release' ) ) {
apply plugin: 'java'
apply plugin: 'maven' // for install task as well as deploy dependencies
-// apply plugin: org.hibernate.build.gradle.upload.UploadManager
+ apply plugin: org.hibernate.build.gradle.upload.UploadManager
configurations {
provided {
@@ -128,7 +128,6 @@ subprojects { subProject ->
)
test {
-// ignoreFailures = true
systemProperties['hibernate.test.validatefailureexpected'] = true
maxHeapSize = "1024m"
}
@@ -193,46 +192,25 @@ subprojects { subProject ->
pom.project pomConfig
}
- if ( ! project.hasProperty('JBOSS_NEXUS_USERNAME') ) {
- JBOSS_NEXUS_USERNAME = "";
- }
- if ( ! project.hasProperty('JBOSS_NEXUS_PASSWORD') ) {
- JBOSS_NEXUS_PASSWORD = "";
- }
-
uploadArchives {
repositories.mavenDeployer {
name = 'jbossDeployer'
configuration = configurations.deployerJars
pom.project pomConfig
-// repository(url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/")
-// snapshotRepository(url: "https://repository.jboss.org/nexus/content/repositories/snapshots")
- credentials = [userName: JBOSS_NEXUS_USERNAME, password: JBOSS_NEXUS_PASSWORD]
- repository(url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/") {
- authentication(credentials)
- }
- snapshotRepository(url: "https://repository.jboss.org/nexus/content/repositories/snapshots") {
- authentication(credentials)
- }
+ repository(url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/")
+ snapshotRepository(url: "https://repository.jboss.org/nexus/content/repositories/snapshots")
}
}
- 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
}
View
@@ -1,6 +1,8 @@
apply plugin: 'groovy'
apply plugin: 'idea'
+buildDir = "target"
+
repositories {
mavenCentral()
mavenRepo urls: "file://" + System.getProperty('user.home') + "/.m2/repository/"
@@ -15,4 +17,7 @@ dependencies {
compile 'org.apache.maven.wagon:wagon-http:1.0-beta-6'
groovy localGroovy()
+}
+
+ideaModule {
}
@@ -0,0 +1,78 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2010, Red Hat Inc. or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors. All third-party contributions are
+ * distributed under license by Red Hat Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.build.gradle.javadoc
+
+import org.gradle.api.tasks.SourceSet
+import org.gradle.api.Project
+
+/**
+ * TODO : javadoc
+ *
+ * @author Steve Ebersole
+ */
+class Aggregator {
+ private final Javadoc javadocTask;
+ private Set<String> excludedSourceSetNames;
+
+ public Aggregator(Javadoc javadocTask) {
+ this.javadocTask = javadocTask;
+ }
+
+ private Set<String> getExcludedSourceSetNames() {
+ if ( excludedSourceSetNames == null ) {
+ excludedSourceSetNames = new HashSet<String>();
+ }
+ return excludedSourceSetNames;
+ }
+
+ /**
+ * Allow adding them one by one
+ *
+ */
+ public void excludeSourceSetName(String name) {
+ getExcludedSourceSetNames().add( name );
+ }
+
+ /**
+ * Also, allow adding them all at once
+ */
+ public void excludeSourceSetNames(String[] names) {
+ getExcludedSourceSetNames().addAll( Arrays.asList( names ) );
+ }
+
+ public void project(Project project) {
+ project.sourceSets.each { SourceSet sourceSet ->
+ if ( excludedSourceSetNames == null || !excludedSourceSetNames.contains( sourceSet.name ) ) {
+ javadocTask.source sourceSet.allJava
+ if( javadocTask.classpath ) {
+ javadocTask.classpath += sourceSet.classes + sourceSet.compileClasspath
+ }
+ else {
+ javadocTask.classpath = sourceSet.classes + sourceSet.compileClasspath
+ }
+ }
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit d2c88d5

Please sign in to comment.