1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-05 21:17:52 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
soloturn
e15c58d9a2 allow "gradle build -PjavacRelease=17" to build java-17 binary
for gradle now one could do:
gradle clean build -x test -x javaDoc -PjavacRelease=17

for maven something like this works to build a different target binary:
mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.compiler.release=17
2022-02-08 11:12:24 +01:00
soloturn
ecc8dfe60a gradle javadoc, addBooleanOption instead of addStringOption 2022-02-08 11:11:50 +01:00
soloturn
856cef2478 javac --release to build for java8, with java11+
javac since java9 has a new flat --release to build a binary which can be run
with an older java. the public API of that older release must be followed as
well.

the flags used before, -source, -target do not do this. therefor it got
unnoticed that plantuml did not compile and run in java7 any more, despite
beeing compiled for for java7.

https://github.com/plantuml/plantuml/issues/898
2022-02-05 19:04:17 +01:00
soloturn
5476a75602 source code java8 compatible 2022-02-04 06:57:48 +01:00
PlantUML
7ea36d5090
Merge pull request #896 from soloturn/java7
gradle, source code java7 compatible
2022-02-04 00:14:41 +01:00
soloturn
2a43a7f616 simplify gradle structure 2022-02-04 00:02:32 +01:00
soloturn
a0d02b4f06 gradle, source code java7 compatible 2022-02-03 23:39:24 +01:00
soloturn
558c74abcb build.gradle.kts, add gpg signing 2022-01-15 23:23:06 +01:00
soloturn
eb37b1f33b gradle, version can now be set on command line.
the default version is in gradle.properties, to change it e.g. to 1.0.0 call:
gradle build -Pversion=1.0.0
2022-01-11 17:40:00 +01:00
soloturn
8479cf0898 build.gradle.kts, include manifest.txt, Build-Jdk-Spec
the manifest classpath is to accomodate running it with pdf or not.
mvn can build via a profile. when building a binary without pdf,
the dependencies could be added later, and plantuml would know it
anyway as they are listed in the manifest.

the gradle way would be to use variant aware builds,
predominatntly this is used for android builds. multi-release
builds are not something for plantuml:
* https://developer.android.com/studio/build/build-variants
* https://docs.gradle.org/current/userguide/variant_model.html
* https://blog.gradle.org/mrjars
2022-01-09 13:59:27 +01:00
soloturn
06ca72c650 build.gradle.kts, bump assertj-core to 3.22.0, junit-jupiter to 5.8.2 2022-01-09 01:42:06 +01:00
soloturn
284285140c build.gradle.kts, add unit testing
improves #47
2022-01-09 01:41:55 +01:00
soloturn
8058b11d27 reformat build.gradle.kts 2 indent
project uses 2 spaces indent, lf as line ending, utf-8. make it easier
to follow this rule by adding a .editorconfig file which vscode and
intellij respect out of the box.
2022-01-07 02:28:17 +01:00
soloturn
39331af67e build.gradle.kts, add javadoc 2022-01-07 01:45:46 +01:00
soloturn
fed524cd6d add basic gradle files to allow conversion to gradle in future, #47 2022-01-06 03:13:46 +01:00