Skip to content

Commit

Permalink
Merge 64855b8 into 5667af5
Browse files Browse the repository at this point in the history
  • Loading branch information
ancho committed Apr 6, 2020
2 parents 5667af5 + 64855b8 commit 15b3d09
Show file tree
Hide file tree
Showing 31 changed files with 352 additions and 300 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_install:
install: true

script:
- "./gradlew check -i"
- "./gradlew check"

after_failure:
- "./gradlew clean check -debug --stacktrace"
Expand Down
77 changes: 23 additions & 54 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,41 +1,16 @@
plugins {
id "eclipse"
id "idea"
id "io.sdkman.vendors" version "1.1.1" apply false
id "com.jfrog.bintray" version "1.8.4" apply false
id "com.github.kt3k.coveralls" version "2.8.2" apply false
id "org.sonarqube" version "2.7" apply false
id 'com.github.ben-manes.versions' version '0.20.0'
id "nebula.optional-base" version "5.0.0" apply false
id "io.sdkman.vendors" version "1.2.1" apply false
id "com.jfrog.bintray" version "1.8.5" apply false
id "com.github.kt3k.coveralls" version "2.10.1" apply false
id "org.sonarqube" version "2.8" apply false
id 'com.github.ben-manes.versions' version '0.28.0'
id "nebula.optional-base" version "5.0.3" apply false
}

// common variables
ext {
asciidoctorjVersion = '1.5.8.1'
asciidoctorjDiagramVersion = '1.5.11'
commonsIoVersion = '2.6'
commonsConfigurationVersion = '1.10'
commonsLangVersion = '3.8.1'
commonsVfs2Version = '2.2'
args4jVersion = '2.33'
freemarkerVersion = '2.3.28'
junit4Version = '4.12'
junit5Version = '5.3.1'
junitPioneer = '0.2.2'
flexmarkVersion = '0.40.8'
jettyServerVersion = '9.4.12.v20180830'
orientDbVersion = '3.0.14'
groovyVersion = '2.5.5'
slf4jVersion = '1.7.25'
logbackVersion = '1.2.3'
assertjCoreVersion = '2.9.1'
thymeleafVersion = '3.0.11.RELEASE'
jsonSimpleVersion = '1.1.1'
jade4jVersion = '1.2.7'
mockitoVersion = '2.23.4'
jsoupVersion = '1.11.3'
pebbleVersion = '3.0.7'

isTravis = (System.getenv("TRAVIS") == "true")
isTravisPullRequest = (System.getenv("TRAVIS_PULL_REQUEST")) != "false"
pullRequestId = System.getenv("TRAVIS_PULL_REQUEST")
Expand Down Expand Up @@ -91,10 +66,11 @@ subprojects {
apply plugin: 'java'
apply plugin: 'nebula.optional-base'

apply from: "$rootDir/gradle/signing.gradle"
// 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/signing.gradle"
apply from: "$rootDir/gradle/publishing.gradle"
}

// add source and target compatibility for all JavaCompile tasks
Expand All @@ -117,25 +93,25 @@ subprojects {
}

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

testCompile("org.junit.jupiter:junit-jupiter-api:$junit5Version")
testRuntime("org.junit.jupiter:junit-jupiter-engine:$junit5Version")
testCompile("org.junit-pioneer:junit-pioneer:$junitPioneer")
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
testCompile "junit:junit:$junit4Version"
testRuntime("org.junit.vintage:junit-vintage-engine:$junit5Version")
testCompileOnly "junit:junit:$junit4Version"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junit5Version"

testCompile "org.assertj:assertj-core:$assertjCoreVersion"
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testImplementation "org.assertj:assertj-core:$assertjCoreVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion"
}

dependencyUpdates.resolutionStrategy = {
dependencyUpdates.resolutionStrategy {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
Expand All @@ -153,13 +129,6 @@ subprojects {

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

/**
* AppVeyor breaks with mockito throwing a java.lang.OutOfMemoryError: PermGen space
*/
if ( JavaVersion.current().java7 ) {
args << '-XX:MaxPermSize=2g'
}

/**
* jdk9 build is unable to determine the amount of MaxDirectMemorySize
* See https://pastebin.com/ECvQeHx0
Expand Down
57 changes: 46 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,49 @@
group=org.jbake
version=2.7.0-SNAPSHOT
description=JBake is a Java based open source static site/blog generator for developers.
group = org.jbake
version = 2.7.0-SNAPSHOT
description = JBake is a Java based open source static site/blog generator for developers.

website=http://jbake.org
issues=https://github.com/jbake-org/jbake/issues
vcs=https://github.com/jbake-org/jbake/
website = http://jbake.org
issues = https://github.com/jbake-org/jbake/issues
vcs = https://github.com/jbake-org/jbake/

jacocoVersion=0.8.2
# runtime dependencies
asciidoctorjVersion = 2.2.0
asciidoctorjDiagramVersion = 2.0.1
args4jVersion = 2.33
commonsIoVersion = 2.6
commonsConfigurationVersion = 1.10
commonsLangVersion = 3.10
commonsVfs2Version = 2.6.0
freemarkerVersion = 2.3.30
flexmarkVersion = 0.61.0
groovyVersion = 3.0.2
jettyServerVersion = 9.4.27.v20200227
jsonSimpleVersion = 1.1.1
jade4jVersion = 1.3.2
jsoupVersion = 1.13.1
jgitVersion = 5.7.0.202003110725-r
logbackVersion = 1.2.3
orientDbVersion = 3.0.30
pebbleVersion = 3.1.2
slf4jVersion = 1.7.30
thymeleafVersion = 3.0.11.RELEASE

bintrayDryRun=false
bintrayOrg=jbake
bintrayRepo=maven
bintrayBinaryRepo=binary
# testing dependencies
junit4Version = 4.13
junit5Version = 5.6.1
junitPioneer = 0.5.6
assertjCoreVersion = 3.15.0
mockitoVersion = 3.3.3

# build dependencies
jacocoVersion = 0.8.3
grgitVersion = 1.6.0


bintrayDryRun = false
bintrayOrg = jbake
bintrayRepo = maven
bintrayBinaryRepo = binary

org.gradle.caching=true
org.gradle.parallel=true
25 changes: 12 additions & 13 deletions gradle/application.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'org.ajoberstar:grgit:1.6.0'
classpath "org.ajoberstar:grgit:$grgitVersion"
}
}

Expand All @@ -16,17 +16,16 @@ apply plugin: 'application'
mainClassName = "org.jbake.launcher.Main"
applicationName = "jbake"

ext {
examplesBase = "$project.buildDir/examples"

exampleRepositories = [
"example_project_freemarker": "git://github.com/jbake-org/jbake-example-project-freemarker.git",
"example_project_groovy" : "git://github.com/jbake-org/jbake-example-project-groovy.git",
"example_project_thymeleaf" : "git://github.com/jbake-org/jbake-example-project-thymeleaf.git",
"example_project_groovy-mte": "git://github.com/jbake-org/jbake-example-project-groovy-mte.git",
"example_project_jade" : "git://github.com/jbake-org/jbake-example-project-jade.git"
]
}
def examplesBase = "$project.buildDir/examples"

def exampleRepositories = [
"example_project_freemarker": "git://github.com/jbake-org/jbake-example-project-freemarker.git",
"example_project_groovy" : "git://github.com/jbake-org/jbake-example-project-groovy.git",
"example_project_thymeleaf" : "git://github.com/jbake-org/jbake-example-project-thymeleaf.git",
"example_project_groovy-mte": "git://github.com/jbake-org/jbake-example-project-groovy-mte.git",
"example_project_jade" : "git://github.com/jbake-org/jbake-example-project-jade.git"
]

processResources {
from("src/main/resources"){
Expand Down Expand Up @@ -58,8 +57,8 @@ exampleRepositories.each { name, repository ->
group "distribution"
description "Zip $name repository"

baseName = name
archiveName = "${baseName}.zip"
archiveBaseName = name
archiveFileName = "${archiveBaseName.get()}.zip"

from project.tasks.getByName("clone_${name}Repository").outputs
exclude 'README.md'
Expand Down

0 comments on commit 15b3d09

Please sign in to comment.