mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-29 08:13:53 +00:00
Merge pull request #850 from soloturn/master
build.gradle.kts, add javadoc
This commit is contained in:
commit
89a9227afd
13
.editorconfig
Normal file
13
.editorconfig
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Editor configuration, see http://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
max_line_length = off
|
||||||
|
trim_trailing_whitespace = false
|
100
build.gradle.kts
100
build.gradle.kts
@ -1,18 +1,18 @@
|
|||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("org.apache.ant:ant:1.10.12")
|
compileOnly("org.apache.ant:ant:1.10.12")
|
||||||
testImplementation("org.assertj:assertj-core:3.21.0")
|
testImplementation("org.assertj:assertj-core:3.21.0")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
|
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
|
||||||
testImplementation("org.scilab.forge:jlatexmath:1.0.7")
|
testImplementation("org.scilab.forge:jlatexmath:1.0.7")
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "net.sourceforge.plantuml"
|
group = "net.sourceforge.plantuml"
|
||||||
@ -21,57 +21,65 @@ description = "PlantUML"
|
|||||||
java.sourceCompatibility = JavaVersion.VERSION_1_8
|
java.sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
java {
|
java {
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
// withJavadocJar()
|
withJavadocJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
srcDirs("src/ext")
|
srcDirs("src/ext")
|
||||||
srcDirs("src/gen")
|
srcDirs("src/gen")
|
||||||
srcDirs("src/h")
|
srcDirs("src/h")
|
||||||
srcDirs("src/jcckit")
|
srcDirs("src/jcckit")
|
||||||
srcDirs("src/net")
|
srcDirs("src/net")
|
||||||
srcDirs("src/org")
|
srcDirs("src/org")
|
||||||
srcDirs("src/smetana")
|
srcDirs("src/smetana")
|
||||||
srcDirs("src/sprites")
|
srcDirs("src/sprites")
|
||||||
}
|
|
||||||
resources {
|
|
||||||
srcDirs("src")
|
|
||||||
include("**/graphviz.dat")
|
|
||||||
include( "**/*.png")
|
|
||||||
include( "**/*.svg")
|
|
||||||
include("**/*.txt")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
resources {
|
||||||
|
srcDirs("src")
|
||||||
|
include("**/graphviz.dat")
|
||||||
|
include("**/*.png")
|
||||||
|
include("**/*.svg")
|
||||||
|
include("**/*.txt")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<Jar> {
|
tasks.withType<Jar> {
|
||||||
manifest {
|
manifest {
|
||||||
attributes["Main-Class"] = "net.sourceforge.plantuml.Run"
|
attributes["Main-Class"] = "net.sourceforge.plantuml.Run"
|
||||||
attributes["Implementation-Version"] = archiveVersion
|
attributes["Implementation-Version"] = archiveVersion
|
||||||
attributes["Multi-Release"] = "true"
|
attributes["Multi-Release"] = "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependsOn(configurations.runtimeClasspath)
|
dependsOn(configurations.runtimeClasspath)
|
||||||
from({
|
from({
|
||||||
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
|
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
|
||||||
})
|
})
|
||||||
|
|
||||||
from("skin") { into("skin") }
|
from("skin") { into("skin") }
|
||||||
from("sprites/archimate") { into("sprites/archimate") }
|
from("sprites/archimate") { into("sprites/archimate") }
|
||||||
from("stdlib") { into("stdlib") }
|
from("stdlib") { into("stdlib") }
|
||||||
from("svg") { into("svg") }
|
from("svg") { into("svg") }
|
||||||
from("themes") { into("themes") }
|
from("themes") { into("themes") }
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications.create<MavenPublication>("maven") {
|
publications.create<MavenPublication>("maven") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<Javadoc> {
|
||||||
|
options {
|
||||||
|
this as StandardJavadocDocletOptions
|
||||||
|
addStringOption("Xdoclint:none", "-quiet")
|
||||||
|
addStringOption("Xmaxwarns", "1")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user