Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add repo jbake-maven-plugin into repo jbake + upgrade to gradle 7 #740

Merged
merged 152 commits into from
Jan 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
9ff9fed
First Version
aldrinleal Sep 13, 2013
76606eb
Fixing Watch and Inline
aldrinleal Sep 13, 2013
abce914
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.1
aldrinleal Sep 22, 2013
5b3efb6
[maven-release-plugin] copy for tag jbake-maven-plugin-0.0.1
aldrinleal Sep 22, 2013
75f492e
[maven-release-plugin] prepare for next development iteration
aldrinleal Sep 22, 2013
9f05c53
Redoing the release
aldrinleal Sep 22, 2013
0dc0f3f
Fixing
aldrinleal Sep 22, 2013
1a7c346
Fixing for release
aldrinleal Sep 23, 2013
8456597
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.2
aldrinleal Sep 23, 2013
cd82bff
[maven-release-plugin] copy for tag jbake-maven-plugin-0.0.2
aldrinleal Sep 23, 2013
29d7ef3
[maven-release-plugin] prepare for next development iteration
aldrinleal Sep 23, 2013
95738d6
Swapping Winstone for Vert.x
aldrinleal Dec 6, 2013
f021b8f
Fixing metadata
aldrinleal Dec 6, 2013
7337c6c
Fixing JBake Version
aldrinleal Jan 27, 2014
cc51599
Fixing pom
aldrinleal Feb 25, 2014
e57c389
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.3
aldrinleal Feb 25, 2014
9f9b388
[maven-release-plugin] copy for tag jbake-maven-plugin-0.0.3
aldrinleal Feb 25, 2014
92d7ac3
[maven-release-plugin] prepare for next development iteration
aldrinleal Feb 25, 2014
8fd028e
Removing Project Requirement
aldrinleal Feb 25, 2014
8768579
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.4
aldrinleal Feb 25, 2014
60f22fb
[maven-release-plugin] copy for tag jbake-maven-plugin-0.0.4
aldrinleal Feb 25, 2014
bc07305
[maven-release-plugin] prepare for next development iteration
aldrinleal Feb 25, 2014
1545207
Updating Prereqs and plugins
aldrinleal Feb 25, 2014
85298ad
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.5
aldrinleal Feb 25, 2014
fb97ce5
[maven-release-plugin] copy for tag jbake-maven-plugin-0.0.5
aldrinleal Feb 25, 2014
1ef1e08
[maven-release-plugin] prepare for next development iteration
aldrinleal Feb 25, 2014
31503d7
Adding Seed Mojo
aldrinleal Feb 25, 2014
564f4b6
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.6
aldrinleal Feb 25, 2014
fe57867
[maven-release-plugin] copy for tag jbake-maven-plugin-0.0.6
aldrinleal Feb 25, 2014
8be2128
[maven-release-plugin] prepare for next development iteration
aldrinleal Feb 25, 2014
8e30720
Upgrade jbake to 2.3.0
ybonnel Jul 1, 2014
6598eb9
Add livereload for inline goal
ybonnel Jul 1, 2014
a8967d9
Shutdown OrientDB to avoid error message on maven build
ybonnel Jul 2, 2014
1c3354e
Minor tweaks to avoid excess re-parsing
aldrinleal Aug 1, 2014
ad9cd06
Interim Commit - Minor Refactoring + LiveReload + updated deps + inte…
aldrinleal Aug 1, 2014
ac2a343
Updating Coordinates
aldrinleal Aug 1, 2014
a016194
Disabling javadoc validation
aldrinleal Aug 1, 2014
49f4f60
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.7
aldrinleal Aug 1, 2014
0db97db
[maven-release-plugin] prepare for next development iteration
aldrinleal Aug 1, 2014
a073b3f
Updating for 2.3.2
aldrinleal Oct 16, 2014
6fc3384
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.8
aldrinleal Oct 16, 2014
c891f66
[maven-release-plugin] prepare for next development iteration
aldrinleal Oct 16, 2014
d0367f2
Adding PR #7 for fixing #6
aldrinleal Dec 29, 2014
03321f0
[maven-release-plugin] prepare release jbake-maven-plugin-0.0.9
aldrinleal Dec 29, 2014
5a6e6af
[maven-release-plugin] prepare for next development iteration
aldrinleal Dec 29, 2014
4b61eba
Update ctor to compile against latest JBake
jasondlee Mar 17, 2015
e60195d
Create new packaging type
jasondlee Apr 24, 2015
8551f2d
Downgrade JBake version to most recent published
jasondlee Apr 24, 2015
dbc45b1
Revert "Downgrade JBake version to most recent published"
jasondlee Apr 24, 2015
666c262
Override JBake properties from plugin configuration
acanda Aug 30, 2015
cac88ca
Merge pull request #12 from acanda/config-properties
aldrinleal Feb 23, 2016
3e70036
Interim Commit - pom updates + sparkjava
aldrinleal Feb 23, 2016
9680fc7
Merge branch 'master' of github.com:ingenieux/jbake-maven-plugin
aldrinleal Feb 23, 2016
34fe642
Merging Lifecycle Mapping
aldrinleal Feb 23, 2016
7a16049
[maven-release-plugin] prepare release jbake-maven-plugin-0.1.0
aldrinleal Feb 23, 2016
d4096ef
[maven-release-plugin] prepare for next development iteration
aldrinleal Feb 23, 2016
b4ae3fc
Bumping versions
aldrinleal Feb 23, 2016
7db71a0
Fixing configuration
aldrinleal Feb 23, 2016
1701bb6
[maven-release-plugin] prepare release jbake-maven-plugin-0.2.0
aldrinleal Feb 23, 2016
cc130ad
[maven-release-plugin] prepare for next development iteration
aldrinleal Feb 23, 2016
37f6d23
Updates
aldrinleal Apr 10, 2016
3342433
Lifecycle
aldrinleal Apr 10, 2016
55970ca
Trying to fix bom
aldrinleal Apr 10, 2016
08c6ede
Minor changes
aldrinleal Apr 28, 2016
1d2a74d
Merge pull request #3 from ingenieux/master
jonbullock Jan 21, 2017
6986fce
[maven-release-plugin] prepare release v0.2.0
jonbullock Jun 2, 2017
ccf4458
[maven-release-plugin] prepare release v0.2.0
jonbullock Jun 2, 2017
110ec36
[maven-release-plugin] prepare release v0.2.0
jonbullock Jun 2, 2017
b2de3db
[maven-release-plugin] prepare for next development iteration
jonbullock Jun 2, 2017
f636987
Updated package names to match published group id.
jonbullock Jun 2, 2017
dacbb81
Reverted change to version for tag.
jonbullock Jun 2, 2017
712e134
Reverted version for tag.
jonbullock Jun 2, 2017
d29993d
Added README.
jonbullock Jun 2, 2017
9ccedb2
Fixed link.
jonbullock Jun 2, 2017
62f3806
Merge remote-tracking branch 'upstream/master'
jonbullock Mar 7, 2018
a41ad66
Updated jbake-core dependency and removed Asciidoctorj and Freemarker
jonbullock Mar 22, 2018
58fa7d9
Fixes #5
jonbullock Apr 22, 2018
ac28fe9
Merge pull request #7 from jonbullock/fix/5-lifecycle-mapping
jonbullock Apr 22, 2018
98cc1bd
Fixes #8
jonbullock Apr 22, 2018
d25bc69
[maven-release-plugin] prepare release v0.3.0
jonbullock Apr 23, 2018
14f6b10
[maven-release-plugin] prepare for next development iteration
jonbullock Apr 23, 2018
8740e30
Merge pull request #9 from jonbullock/fix/8-deps-cleanup
jonbullock Apr 23, 2018
88b3b0f
[maven-release-plugin] prepare release v0.3.1
jonbullock Apr 23, 2018
17acfbb
[maven-release-plugin] prepare for next development iteration
jonbullock Apr 23, 2018
a4f74b3
Updated readme with details of goals.
jonbullock Apr 23, 2018
8ecf3d3
Merge pull request #12 from jonbullock/change/update-readme
jonbullock Apr 23, 2018
a998ccf
Adjustments to make it compatible with JBake 2.6.2
kwin Oct 10, 2018
1b4df42
Update to JBake 2.6.3
hd42 Nov 13, 2018
27df4ce
Merge pull request #17 from kwin/feature/jbake-262-compatibility
jonbullock Nov 15, 2018
f51050f
Fail build on baking errors
kwin Nov 16, 2018
645e0ab
Merge pull request #19 from kwin/feature/13_fail-on-baking-errors
jonbullock Nov 16, 2018
66195e7
Merge remote-tracking branch 'hd42/master' (Update to jbake 2.6.3)
ascheman Oct 5, 2019
a9eb7d9
Update to JBake 2.6.4
ascheman Oct 5, 2019
4b6b7fe
Merge pull request #22 from dukecon/master
jonbullock Apr 14, 2020
755ef0a
fix: Use same default port as the CLI tool
rhwood Apr 15, 2020
9ad15de
[maven-release-plugin] prepare release v0.3.2
jonbullock Apr 15, 2020
59262e0
[maven-release-plugin] prepare for next development iteration
jonbullock Apr 15, 2020
f3b3ab8
fix: Use configuration, falling back on default if needed
rhwood Apr 18, 2020
432738d
doc: Update version on maven and add "live" badge
rhwood Apr 18, 2020
f35933b
Merge pull request #28 from rhwood/patch-1
jonbullock Apr 19, 2020
33846f2
Merge pull request #29 from rhwood/patch-2
jonbullock Apr 19, 2020
9192424
update jbake to 2.6.5
ancho May 1, 2020
a7821ec
Merge pull request #30 from ancho/update/jbake-2.6.5
jonbullock May 11, 2020
0b250c1
[maven-release-plugin] prepare release v0.3.3
jonbullock Sep 12, 2020
0fb5ac0
[maven-release-plugin] prepare for next development iteration
jonbullock Sep 12, 2020
e839bb8
Updated version info.
jonbullock Sep 12, 2020
d564b9f
Merge pull request #31 from jonbullock/master
jonbullock Sep 12, 2020
57b114f
Resolves #25, resolves #32
jonbullock Mar 3, 2021
ad85e94
Fixed whitespace
jonbullock Mar 3, 2021
504cf71
Merge remote-tracking branch 'upstream/master'
jonbullock Mar 3, 2021
396d5fc
Merge pull request #33 from jonbullock/master
jonbullock Mar 3, 2021
932d5f5
Fix typo and align version of plugin in readme
tarilabs Apr 4, 2021
4f4153e
Merge pull request #34 from tarilabs/patch-1
jonbullock Apr 11, 2021
8972683
Updated jbake-core dependency to 2.6.6
jonbullock Apr 18, 2021
119a999
Merge pull request #36 from jonbullock/change/upgrade-jbake-2.6.6
jonbullock Apr 20, 2021
41a5432
[maven-release-plugin] prepare release v0.3.4
jonbullock Apr 20, 2021
bb62a9f
[maven-release-plugin] prepare for next development iteration
jonbullock Apr 20, 2021
e561332
Updated docs for 0.3.4 release.
jonbullock Apr 20, 2021
e25286b
Merge pull request #37 from jonbullock/change/update-docs-2.6.6
jonbullock Apr 20, 2021
ea48b5a
Use newer JDKs in Travis build
pzygielo May 17, 2021
abd500a
Updated jbake-core dependency to 2.6.7
pzygielo May 17, 2021
c2abe66
Updated jbake-core to 2.7.0-rc.2
jonbullock May 24, 2021
81708fd
Updated version number.
jonbullock May 24, 2021
f057349
Merge pull request #38 from pzygielo/bump-jbake-core
jonbullock May 24, 2021
a15db50
[maven-release-plugin] prepare release v0.3.5
jonbullock May 24, 2021
680351f
[maven-release-plugin] prepare for next development iteration
jonbullock May 24, 2021
4765ef0
Merge branch 'master' into change/support-2.7.0-rc.2
jonbullock May 24, 2021
6846121
Merge pull request #40 from jonbullock/change/support-2.7.0-rc.2
jonbullock May 24, 2021
7731b38
Updated version number.
jonbullock May 24, 2021
9a764da
Merge pull request #41 from jonbullock/master
jonbullock May 24, 2021
3f0f59a
[maven-release-plugin] prepare release v0.3.6-rc.2
jonbullock May 25, 2021
e550c42
[maven-release-plugin] prepare for next development iteration
jonbullock May 25, 2021
bfc8bdf
Pointing documentation to changed default port introduced in #28
asbachb Jun 25, 2021
5bbc76b
upgraded sparq-core version from 2.3 to 2.9.3 to fix
Nov 2, 2021
0fc9ee1
Merge pull request #43 from asbachb/fix-documentation
jonbullock Dec 28, 2021
3d3b22a
Merge pull request #45 from httpants/feature/fix-jbake-issue-466
jonbullock Dec 28, 2021
9cb1dca
Moved all files into subdir jbake-maven-plugin to prepare to merge in…
ge0ffrey Dec 28, 2021
f315131
Merge jbake-maven-plugin repository into jbake repository
ge0ffrey Dec 28, 2021
05f2d38
Remove dead Mercurial files
ge0ffrey Dec 28, 2021
cc82c03
Align gitignore and travis files of maven plugin with root gitignore …
ge0ffrey Dec 28, 2021
e475de0
The maven plugin uses Apache License 2 as noted in the readme and cop…
ge0ffrey Dec 28, 2021
24a5727
Use gradle to build jbake-maven-plugin (FAILING on qdox casting)
ge0ffrey Dec 28, 2021
f03403f
upgrade to gradle 7.3.3 remove jbake-maven-plugin as module from base…
ancho Dec 29, 2021
4e94cf2
restructure build to get jbake-maven-plugin working
ancho Dec 29, 2021
2bc0d50
refactor build using a jbake specific java-common convention plugin a…
ancho Dec 29, 2021
61556f9
disable sonartype and coveralls stages on travis ci
ancho Dec 29, 2021
eb3239b
jbake-maven-plugin: Use gradle.properties versions + include optional…
ge0ffrey Dec 30, 2021
50b5980
jbake-maven-plugin: BUILD.adoc mention
ge0ffrey Dec 30, 2021
52b7ef4
Restore the optional dependencies
ge0ffrey Dec 30, 2021
8ba2515
jbake-maven-plugin: mention that all optional dependencies are now in…
ge0ffrey Dec 30, 2021
941c706
Restore optional flag for commons-vfs2 too
ge0ffrey Dec 31, 2021
c242757
add pom definition and enable signatures for jbake-maven-plugin
ancho Jan 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ jobs:
- jdk: openjdk11
os: osx

- stage: Quality Check
name: sonarqube
jdk: openjdk11
script:
- "./gradlew jacocoRootReport sonarqube -i --stacktrace"

- stage: Quality Check
name: coveralls
jdk: openjdk11
script:
- "./gradlew -PskipSigning jacocoRootReport coveralls -i --stacktrace"
# - stage: Quality Check
# name: sonarqube
# jdk: openjdk11
# script:
# - "./gradlew jacocoRootReport sonarqube -i --stacktrace"
#
# - stage: Quality Check
# name: coveralls
# jdk: openjdk11
# script:
# - "./gradlew -PskipSigning jacocoRootReport coveralls -i --stacktrace"

notifications:
irc: "irc.freenode.org#jbake"
Expand Down
5 changes: 4 additions & 1 deletion BUILD.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To get an overview of all available tasks with a short description run `./gradle

== Structure

There are 3 projects
There are 4 projects:

root aka. jbake-base::
configures subprojects, jacoco execution aggregation and coveralls
Expand All @@ -34,6 +34,9 @@ jbake-core::
- the core library. produces jbake-core-{version}.jar (`build/libs`)
- publishes to bintray maven repository jbake-core

jbake-maven-plugin::
- the JBake maven plugin, build by Gradle too

jbake-dist::
- bundles the cli to an distribution (`build/distribution`)
- publishes to bintray binary repository jbake
Expand Down
192 changes: 20 additions & 172 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import java.time.format.DateTimeFormatter

plugins {
id "eclipse"
id "idea"
id "io.sdkman.vendors" version "2.0.0" apply false
id "com.github.kt3k.coveralls" version "2.10.2" apply false
id "org.sonarqube" version "3.1.1" apply false
id "io.github.gradle-nexus.publish-plugin" version "1.0.0"
id 'com.github.ben-manes.versions' version '0.38.0'
id "nebula.optional-base" version "5.0.3" apply false
id 'org.ajoberstar.grgit' version "$grgitVersion"
id "io.github.gradle-nexus.publish-plugin" version "1.0.0"
id "com.github.breadmoirai.github-release" version "2.2.12"
id "eclipse"
id "idea"
}

def buildTimeAndDate = grgit.head().dateTime

// common variables
ext {
isTravis = (System.getenv("TRAVIS") == "true")
Expand All @@ -23,177 +22,26 @@ ext {
sonarDefaultProjectKey = "org.jbake:jbake-base:jbake-core"
sonarURL = System.getenv("SONARHOST") ?: sonarDefaultURL
sonarProjectKey = System.getenv("SONARPROJECTKEY") ?: sonarDefaultProjectKey
buildDate = buildTimeAndDate.format(DateTimeFormatter.ofPattern('yyyy-MM-dd'))
buildTime = buildTimeAndDate.format(DateTimeFormatter.ofPattern('HH:mm:ss.SSSZ'))
isReleaseVersion = !version.endsWith("SNAPSHOT")
}

/**
* Apply coveralls to the root project as we just need it here to send the
* aggregated coverage execution data from the jacocoRootReport task
*/
apply plugin: 'com.github.kt3k.coveralls'

/**
* Apply jacoco plugin to all projects and add jcenter as default repository
*/
allprojects {
apply plugin: 'jacoco'

if (JavaVersion.current().isJava8Compatible()) {

apply plugin: 'checkstyle'

tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
}
}

}

nexusPublishing {
repositories {
mavenCentral()
}

jacoco {
toolVersion = jacocoVersion
}

tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
sonatype()
}
}

/**
* Common setup for all subprojects
*/
subprojects {

apply plugin: 'java'
apply plugin: 'nebula.optional-base'

// We do not publish any jars from the jbake-dist project
if ( project.name != "jbake-dist" ) {
apply from: "$rootDir/gradle/maven-publishing.gradle"
apply from: "$rootDir/gradle/publishing.gradle"
apply from: "$rootDir/gradle/signing.gradle"
}

// add source and target compatibility for all JavaCompile tasks
tasks.withType(JavaCompile) {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}

jacoco {
excludes = ["**/*OrientSqlTokenManager*"]
}
}

dependencies {
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation "org.slf4j:jul-to-slf4j:$slf4jVersion"
implementation "org.slf4j:jcl-over-slf4j:$slf4jVersion"
implementation "ch.qos.logback:logback-classic:$logbackVersion", optional
implementation "ch.qos.logback:logback-core:$logbackVersion", optional

testImplementation "org.junit-pioneer:junit-pioneer:$junitPioneer"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5Version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5Version"
// compatibility for Junit 4 test
testCompileOnly "junit:junit:$junit4Version"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junit5Version"

testImplementation "org.assertj:assertj-core:$assertjCoreVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testImplementation 'org.itsallcode:junit5-system-extensions:1.1.0'
}

dependencyUpdates.resolutionStrategy {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]?${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
dependencyUpdates.resolutionStrategy {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]?${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}

//set jvm for all Test tasks (like test and smokeTest)
tasks.withType(Test) {

def args = ['-Xms512m', '-Xmx3g', '-Dorientdb.installCustomFormatter=false=false','-Djna.nosys=true']

/**
* jdk9 build is unable to determine the amount of MaxDirectMemorySize
* See https://pastebin.com/ECvQeHx0
*/
if ( JavaVersion.current().java9Compatible ) {
args << '-XX:MaxDirectMemorySize=2g'
}
jvmArgs args
}

jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}

jacocoTestReport.dependsOn test
}

task jacocoMerge(type: JacocoMerge) {
description 'Merge all testreport execution data from subprojects excluding jbake-dist'
dependsOn subprojects.test
executionData subprojects.findAll{it.name!="jbake-dist"}.jacocoTestReport.executionData
}

task jacocoRootReport(type: JacocoReport, group: 'Coverage reports') {
description = 'Generates an aggregate report from all subprojects'
dependsOn jacocoMerge

sourceDirectories.from files(subprojects.sourceSets.main.allSource.srcDirs)
classDirectories.from files(subprojects.sourceSets.main.output)
executionData.from jacocoMerge.executionData

reports {
html.enabled = true
xml.enabled = true
}
}

task testReport(type: TestReport) {
description "Generate an aggregated Testreport for all projects"

destinationDir = file("$buildDir/reports/allTests")
// Include the results from the `test` task in all subprojects
reportOn subprojects*.test
}

coveralls {
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/jacocoRootReport.xml"
}

tasks.coveralls {
group = 'Coverage reports'
description = 'Uploads the aggregated coverage report to Coveralls'

dependsOn jacocoRootReport
// Skip Task if not run on CI Server

onlyIf { System.env.'CI' }
}
3 changes: 3 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id 'groovy-gradle-plugin'
}
Empty file added buildSrc/settings.gradle
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
plugins {
id 'java'
id 'jacoco'
id 'checkstyle'
}

repositories {
mavenCentral()
}

dependencies {
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation "org.slf4j:jul-to-slf4j:$slf4jVersion"
implementation "org.slf4j:jcl-over-slf4j:$slf4jVersion"
implementation "ch.qos.logback:logback-classic:$logbackVersion"
implementation "ch.qos.logback:logback-core:$logbackVersion"

testImplementation "org.junit-pioneer:junit-pioneer:$junitPioneer"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5Version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5Version"
// compatibility for Junit 4 test
testCompileOnly "junit:junit:$junit4Version"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junit5Version"

testImplementation "org.assertj:assertj-core:$assertjCoreVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testImplementation 'org.itsallcode:junit5-system-extensions:1.1.0'
}

tasks.withType(JavaCompile) {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

//set jvm for all Test tasks (like test and smokeTest)
tasks.withType(Test) {

def args = ['-Xms512m', '-Xmx3g', '-Dorientdb.installCustomFormatter=false=false', '-Djna.nosys=true']

/**
* jdk9 build is unable to determine the amount of MaxDirectMemorySize
* See https://pastebin.com/ECvQeHx0
*/
if (JavaVersion.current().java9Compatible) {
args << '-XX:MaxDirectMemorySize=2g'
}
jvmArgs args
}

task javadocJar(type: Jar) {
archiveClassifier.set('javadoc')
from javadoc
}

task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}

tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}

test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}

jacoco {
excludes = ["**/*OrientSqlTokenManager*"]
}
}

jacoco {
toolVersion = jacocoVersion
}

jacocoTestReport {
reports {
xml.required.set true // coveralls plugin depends on xml format report
html.required.set true
}
}

jacocoTestReport.dependsOn test

tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
}
}
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configureondemand = true
org.gradle.vfs.watch = true

# jbake-maven-plugin dependencies
mavenVersion = 3.8.1
mavenAnnotationsVersion = 3.6.2
sparkVersion = 2.9.3
2 changes: 0 additions & 2 deletions gradle/application.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
apply plugin: 'application'

mainClassName = "org.jbake.launcher.Main"
applicationName = "jbake"

Expand Down
Loading