-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
81 lines (65 loc) · 1.93 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.freeplane:gradle-freeplane-plugin:0.5'
}
}
plugins {
id "com.diffplug.spotless" version "6.0.5"
}
repositories {
mavenCentral()
}
apply plugin: 'org.freeplane.gradle-freeplane-plugin'
dependencies {
implementation 'org.codehaus.groovy:groovy-all:3.0.8'
implementation 'org.apache.commons:commons-text:1.9'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
}
freeplane {
// mandatory, freeplane installation directory.
// (Freeplane.app directory on MacOS)
freeplaneDirectory = System.env.FREEPLANE_DIR
// optional, addon source directory
addonSourceDirectory = 'src/addon'
// optional, to be set only if more then one mind map file in the addon source directory
// addonDefinitionMindMapFileName = 'Greetings.mm'
// optional, includes
// includes = ['**/*']
// optional, excludes
// excludes = ['**/*.bak', '**/~*', '**/$~*.mm~', '**/*.gdsl', '**/*.dsld']
// optional, max heap size for freeplane
// maxHeapSize = '1024m'
// freeplane user setting directory
userDirectory = System.env.FREEPLANE_USER_DIR
// optional, additional Java Runtime options
// jvmArgs = []
}
spotless {
format 'misc', {
target '*.md', '.gitignore'
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
groovy {
greclipse().configFile('spotless.eclipseformat.xml')
}
groovyGradle {
target '*.gradle'
greclipse().configFile('spotless.eclipseformat.xml')
}
}
jar {
archiveFileName = 'freeplane-zotero.jar'
// Add dependencies (excluding Freeplane itself) to the jar:
from {
configurations.compileClasspath.collect {
if (!it.toString().startsWith(System.env.FREEPLANE_DIR)) {
return it.isDirectory() ? it : zipTree(it)
}
}
}
}