-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
132 lines (117 loc) · 3.81 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2014-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'java-library'
id 'groovy'
id 'org.kordamp.gradle.groovy-project'
id 'org.kordamp.gradle.plugin'
id 'org.kordamp.gradle.coveralls'
}
config {
info {
name = rootProject.name
vendor = 'JBake'
description = 'Run JBake inside a Gradle build'
inceptionYear = '2014'
tags = ['jbake', 'site-generator']
specification { enabled = false }
links {
website = "https://github.com/jbake-org/${project.rootProject.name}"
issueTracker = "https://github.com/jbake-org/${project.rootProject.name}/issues"
scm = "https://github.com/jbake-org/${project.rootProject.name}.git"
}
scm {
url = "https://github.com/jbake-org/${project.rootProject.name}"
connection = "scm:git:https://github.com/jbake-org/${project.rootProject.name}.git"
developerConnection = "scm:git:[email protected]:jbake-org/${project.rootProject.name}.git"
}
people {
person {
id = 'melix'
name = 'Cedric Champeau'
roles = ['developer']
}
}
}
docs {
groovydoc {
replaceJavadoc = true
options {
link 'https://docs.gradle.org/5.0/javadoc/', 'org.gradle.'
}
}
}
plugins {
plugin {
name = 'jbake'
id = 'org.jbake.site'
implementationClass = 'org.jbake.gradle.JBakePlugin'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compileOnly gradleApi()
api "com.github.zafarkhaja:java-semver:$semverVersion"
compileOnly "org.eclipse.jetty:jetty-server:$jettyVersion"
compileOnly("org.jbake:jbake-core:$jbakeVersion") {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'commons-io', module: 'commons-io'
exclude group: 'org.apache.commons', module: 'commons-lang3'
exclude group: 'org.slf4j', module: 'slf4j-api'
exclude group: 'com.vladsch.flexmark', module: 'flexmark'
}
testImplementation("org.spockframework:spock-core:$spockVersion") {
exclude group: 'org.codehaus.groovy'
}
testImplementation "commons-io:commons-io:$commonsIoVersion"
}
project.tasks.withType(Test) {
def args = ['-Xms512m', '-Xmx3g', '-Dorientdb.installCustomFormatter=false=false']
/**
* 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
*/
if (JavaVersion.current().java9Compatible) {
args << '-XX:MaxDirectMemorySize=2g'
}
jvmArgs args
}
license {
exclude '**/*.woff'
exclude '**/*.eot'
exclude '**/*.ttf'
exclude '**/*.md'
exclude '**/*.adoc'
exclude '**/*.svg'
exclude '**/*.ico'
}
licenseTest {
source -= sourceSets.test.resources
}
test {
useJUnitPlatform()
}