-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (60 loc) · 2.44 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
// build script dependencues
buildscript {
ext.kotlin_version = '1.3.21'
ext.serialization_version = '0.10.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
group 'com.viggin.alfred'
version '1.0-SNAPSHOT'
// plugins fetched in buildscript.dependencies
apply plugin: 'kotlin'
apply plugin: 'application' //https://docs.gradle.org/current/userguide/application_plugin.html
apply plugin: 'kotlinx-serialization' // generate serializers of annotated data classes
apply plugin: 'idea' //generate files so project can be opened with idea using. project/open file
repositories {
mavenCentral()
mavenLocal()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://dl.bintray.com/viggin543/kotlin-alfred-workflow' }
}
// runtime dependencies
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version"
compile 'ch.qos.logback:logback-classic:1.2.3'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.26'
compile group: 'com.google.inject', name: 'guice', version: '4.2.2'
compile group: 'org.apache.commons', name: 'commons-text', version: '1.6'
compile group: 'org.reflections', name: 'reflections', version: '0.9.11'
compile group: 'viggin543.alfred', name: 'kotlin-alfred-workflow', version: '0.0.1'
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0"
}
application {
mainClassName = 'main.workflow.App'
applicationDefaultJvmArgs = ['--add-opens', 'java.base/java.lang=ALL-UNNAMED', '-ea']
}
clean {
delete 'workflow.log'
}
task('publish') {
dependsOn 'test'
dependsOn 'installDist'
description 'publishing workflow to -> ~/alfred_sync/Alfred.alfredpreferences/workflows/user.workflow.ops_ginie'
doFirst {
copy {
delete "$System.env.HOME/alfred_sync/Alfred.alfredpreferences/workflows/user.workflow.ops_ginie/dist"
from("$buildDir") {
include "install/**"
}
into "$System.env.HOME/alfred_sync/Alfred.alfredpreferences/workflows/user.workflow.ops_ginie/dist"
}
}
}