-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (60 loc) · 2.61 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
/**
* [For how to use this build.gradle](http://tutorials.jenkov.com/gradle/dependency-management.html)
* Dependencies:
* - [Flexmark](https://github.com/vsch/flexmark-java)
*/
plugins {
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/com.vladsch.flexmark/flexmark-ext-footnotes
compile group: 'com.vladsch.flexmark', name: 'flexmark-ext-footnotes', version: '0.62.2'
compile group: 'com.vladsch.flexmark', name: 'flexmark-ext-abbreviation', version: '0.62.2'
compile group: 'com.vladsch.flexmark', name: 'flexmark-ext-anchorlink', version: '0.62.2'
compile group: 'com.vladsch.flexmark', name: 'flexmark-ext-typographic', version: '0.62.2'
compile group: 'one.util', name: 'streamex', version: '0.7.3'
implementation 'org.jetbrains:annotations:20.1.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
implementation 'com.google.code.gson:gson:2.8.6'
// implementation 'junit:junit:4.12'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0' // Added by intellij by default
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' // Added by intellij by default
// To use: assertThat
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '2.2'
// To mock stuff
testCompile group: 'org.powermock', name: 'powermock-api-mockito2', version: '2.0.9'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '2.0.9'
// testImplementation 'org.mockito:mockito-all:1.10.19'
// testImplementation "org.powermock:powermock-module-junit4:2.0.7"
// testImplementation "org.powermock:powermock-module-junit4-rule:2.0.7"
// testImplementation "org.powermock:powermock-api-mockito2:2.0.7"
// testImplementation "org.powermock:powermock-classloading-xstream:1.6.6"
// Dependency of Flexmark
compile group: 'com.vladsch.flexmark', name: 'flexmark-all', version: '0.62.2'
// To use: FileUtils
compile group: 'commons-io', name: 'commons-io', version: '2.6'
}
// Use JUnit as testing platform
test {
useJUnitPlatform()
}
jar {
manifest {
attributes "Main-Class": "framework.Main"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
// === Tasks
task show(type: JavaExec) {
group 'Culprit Main'
description 'Run the application'
classpath sourceSets.main.runtimeClasspath
main = 'framework.Main'
args "--single", "file C:\\Users\\sebas\\IdeaProjects\\culprit_2\\content\\math\\mathTest_1.md"
}