forked from JPro-one/markdown-javafx-renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (81 loc) · 2.28 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
buildscript {
repositories {
jcenter()
gradlePluginPortal()
maven {
url "https://sandec.jfrog.io/artifactory/repo"
}
}
dependencies {
classpath "com.sandec.jpro:jpro-plugin-gradle:$JPRO_VERSION"
classpath 'org.openjfx:javafx-plugin:0.0.10'
}
}
repositories {
jcenter()
}
apply plugin: 'java'
group = 'com.sandec'
version = "$MDFX_VERSION"
compileJava {
sourceCompatibility = 11
targetCompatibility = 11
options.compilerArgs << "-Xlint:deprecation"
options.compilerArgs << "-Xlint:unchecked"
}
apply plugin: 'org.openjfx.javafxplugin'
apply plugin: 'maven-publish'
javafx {
version = "$JAVAFX_VERSION"
modules = [ 'javafx.base', 'javafx.graphics', 'javafx.controls', 'javafx.fxml', 'javafx.media', 'javafx.web' ]
}
dependencies {
implementation "com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:$FLEXMARK_VERSION"
implementation "com.vladsch.flexmark:flexmark-ext-gfm-tasklist:$FLEXMARK_VERSION"
implementation "com.vladsch.flexmark:flexmark-ext-tables:$FLEXMARK_VERSION"
implementation "com.vladsch.flexmark:flexmark-ext-attributes:$FLEXMARK_VERSION"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
groupId project.group
artifactId "mdfx"
version project.version
}
}
repositories {
maven {
name = "artifactory"
url = "https://sandec.jfrog.io/artifactory/repo"
credentials {
username System.getenv("SANDEC_ARTIFACTORY_USERNAME")
password System.getenv("SANDEC_ARTIFACTORY_PASSWORD")
}
}
}
}
configure([project(':example')]) {
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'org.openjfx.javafxplugin'
apply plugin: 'com.sandec.jpro'
repositories {
jcenter()
}
javafx {
version = "$JAVAFX_VERSION"
modules = [ 'javafx.base', 'javafx.graphics', 'javafx.controls', 'javafx.fxml', 'javafx.media', 'javafx.web' ]
}
dependencies {
implementation rootProject
implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
implementation "fr.brouillard.oss:cssfx:$CSSFX_VERSION"
}
mainClassName = 'com.sandec.mdfx.example.ExampleMDFX'
}