Skip to content

Commit 10f5763

Browse files
authored
Merge pull request #34 from lawson89/v3.5
Transfer previewer code to sierra project
2 parents ec1a1c5 + 69378f7 commit 10f5763

File tree

14 files changed

+1531
-8
lines changed

14 files changed

+1531
-8
lines changed

sierra-previewer/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414

1515
plugins {
16+
id 'java'
1617
id 'application'
1718
}
1819

@@ -24,10 +25,26 @@ dependencies {
2425

2526
implementation 'com.fifesoft:rsyntaxtextarea:3.6.0'
2627
implementation 'com.fifesoft:autocomplete:3.3.2'
28+
29+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
30+
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.1'
31+
testImplementation 'org.mockito:mockito-core:5.9.0'
32+
testImplementation 'org.mockito:mockito-junit-jupiter:5.9.0'
33+
34+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
35+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2736
}
2837

2938
tasks.withType(JavaCompile) {
3039
options.compilerArgs = [
3140
'-parameters'
3241
]
3342
}
43+
44+
tasks.named('test', Test) {
45+
useJUnitPlatform()
46+
}
47+
48+
application {
49+
mainClass = 'org.httprpc.sierra.previewer.SierraPreviewerApp'
50+
}

sierra-previewer/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
action.custom-1=run
2+
action.custom-1.args=-w run

0 commit comments

Comments
 (0)