Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
apply steve's uploadAuth plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
stliu committed Mar 22, 2011
1 parent c8e9a58 commit ab09b23
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 35 deletions.
23 changes: 2 additions & 21 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
1. profile tasks
2. GenerateXslFoTask
3. if there is no translation defined, then should no translation/po tasks (done)
4. default project's task name "COMMON_BOOK" (done)
5. source set of default project may has some problems
6. more test cases
Docbook generation plugin for Gradle.

check out samples/mutilpleTranslations/*.gradle for the useage.
the book structure for now is fixed.
for example, mutilbooks.gradle
src
└── main
└── docbook
├── devguide
│   └── en-US
├── manual
│   ├── de-DE
│   ├── en-US
└── quickstart
└── en-US

and also, the current source depends on the latest jdocbook-core (build from source)
check out the samples directory for the usage
41 changes: 27 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,21 @@
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301 USA
*/
buildscript {
repositories {
mavenCentral()
mavenRepo name: "jboss", urls: "http://repository.jboss.org/nexus/content/groups/public/"
mavenRepo urls: "file://" + System.getProperty('user.home') + "/.m2/repository/"
}
dependencies {
classpath 'org.hibernate.build.gradle:gradle-upload-auth-plugin:1.0.0'
}
}
apply plugin: 'groovy'
apply plugin: 'maven' // used for 'install' and 'upload'/'deploy' task
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'uploadAuth'
apply { url: 'https://loom.svn.sourceforge.net/svnroot/loom/shared/trunk/artifacts.gradle' } // sets up source and javadoc jar uploads

group = 'org.jboss.jdocbook'
Expand Down Expand Up @@ -119,25 +130,27 @@ def pomConfig = {
configure(install.repositories.mavenInstaller) {
pom.project pomConfig
}

if (!hasProperty('MY_JBOSS_USER')) {
MY_JBOSS_USER = "";
}
if (!hasProperty('MY_JBOSS_PASS')) {
MY_JBOSS_PASS = "";
}
//
//if (!hasProperty('MY_JBOSS_USER')) {
// MY_JBOSS_USER = "";
//}
//if (!hasProperty('MY_JBOSS_PASS')) {
// MY_JBOSS_PASS = "";
//}

uploadArchives {
repositories.mavenDeployer {
name = 'jbossDeployer'
configuration = configurations.deployerJars
pom.project pomConfig
credentials = [userName: MY_JBOSS_USER, password: MY_JBOSS_PASS]
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/")
// credentials = [userName: MY_JBOSS_USER, password: MY_JBOSS_PASS]
// 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)
// }
}
}
2 changes: 2 additions & 0 deletions src/samples/multipleTranslations/mutilbooks.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@





/**
* script with mutil-books support
*/
Expand Down

0 comments on commit ab09b23

Please sign in to comment.