mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-6903 - add building of hem and manual docs
This commit is contained in:
parent
a0b2a4b3c9
commit
d02864bac6
@ -39,10 +39,10 @@ jdocbook {
|
|||||||
masterSourceDocumentName = 'Hibernate_Development_Guide.xml'
|
masterSourceDocumentName = 'Hibernate_Development_Guide.xml'
|
||||||
}
|
}
|
||||||
// todo : need to remove this once all content moved to devguide
|
// todo : need to remove this once all content moved to devguide
|
||||||
// manual {
|
manual {
|
||||||
// masterSourceDocumentName = 'HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml'
|
masterSourceDocumentName = 'HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml'
|
||||||
// translation = ['de-DE','es-ES','fr-FR','ja-JP','pt-BR','zh-CN']
|
// translation = ['de-DE','es-ES','fr-FR','ja-JP','pt-BR','zh-CN']
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task buildTutorialZip(type: Zip) {
|
task buildTutorialZip(type: Zip) {
|
||||||
|
@ -1,5 +1,35 @@
|
|||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
apply plugin: "jdocbook"
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
mavenLocal()
|
||||||
|
mavenRepo name: "jboss", urls: "http://repository.jboss.org/nexus/content/groups/public/"
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'org.jboss.jdocbook:gradle-jdocbook:1.1.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
jdocbookStyles "org.hibernate:hibernate-jdocbook-style:2.0.1"
|
||||||
|
}
|
||||||
|
|
||||||
|
jdocbook {
|
||||||
|
format('html_single') {
|
||||||
|
finalName = "index.html"
|
||||||
|
stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml-single.xsl"
|
||||||
|
}
|
||||||
|
format('html') {
|
||||||
|
finalName = "index.html"
|
||||||
|
stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml.xsl"
|
||||||
|
}
|
||||||
|
masterSourceDocumentName="master.xml"
|
||||||
|
masterLanguage="en"
|
||||||
|
}
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: org.hibernate.gradle.testing.matrix.MatrixTestingPlugin
|
apply plugin: org.hibernate.gradle.testing.matrix.MatrixTestingPlugin
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ aggregateJavadocs.doLast {
|
|||||||
// release bundles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// release bundles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
releaseBuildDir = dir( buildDirName )
|
releaseBuildDir = dir( buildDirName )
|
||||||
task prepareReleaseBundles( dependsOn: [parent.project( 'documentation' ).tasks.buildDocs,aggregateJavadocs] )
|
task prepareReleaseBundles( dependsOn: [parent.project( 'documentation' ).tasks.buildDocs,parent.project('hibernate-entitymanager' ).tasks.buildDocs,aggregateJavadocs] )
|
||||||
|
|
||||||
|
|
||||||
releaseCopySpec = copySpec {
|
releaseCopySpec = copySpec {
|
||||||
@ -160,6 +160,10 @@ releaseCopySpec = copySpec {
|
|||||||
from new File( parent.project( 'documentation' ).buildDir, 'docbook/publish' )
|
from new File( parent.project( 'documentation' ).buildDir, 'docbook/publish' )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
into('documentation/hem') {
|
||||||
|
from new File( parent.project( 'hibernate-entitymanager' ).buildDir, 'docbook/publish' )
|
||||||
|
}
|
||||||
|
|
||||||
into('documentation/javadocs') {
|
into('documentation/javadocs') {
|
||||||
from javadocBuildDir.dir
|
from javadocBuildDir.dir
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user