-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
45 lines (34 loc) · 1.2 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
/**
* The buildLibraries task will convert the src/libraries.in/ files into SageTV plugins, and put them in the build/libraries directories. From there you'd want to manually move the new/updates files to the plugins/libraries/ directory and then commit those.
*
* In SageTV 9 we can use .jar files directly as plugins, so, this is quick way to convert a maven central hosted jar file into a sagetv plugin by simply creating the plugin xml for the given jar file.
*/
plugins {
id "com.jfrog.bintray" version "1.4"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
ext {
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
// https://mvnrepository.com/artifact/com.github.spullara.mustache.java/compiler
compile group: 'com.github.spullara.mustache.java', name: 'compiler', version: '0.9.3'
}
task(buildLibraries, dependsOn: 'classes', type: JavaExec) {
main = 'BuildLibraries'
classpath = sourceSets.main.runtimeClasspath
}
task copyLibraries(type: Copy, dependsOn: buildLibraries) {
from "$buildDir/libraries"
include "*.xml"
into "plugins/libraries"
}
defaultTasks 'copyLibraries'