-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (66 loc) · 1.83 KB
/
build.gradle.kts
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
import java.net.URL
plugins {
id("com.github.ben-manes.versions") version "0.39.0"
id("org.openstreetmap.josm") version "0.8.0"
id("java")
id("java-library")
}
group = "org.openstreetmap.josm.plugins.devseed.JosmMagicWand"
version = "2.0.3"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE // O DuplicatesStrategy.EXCLUDE si deseas excluir duplicados
}
// Repositories Configuration
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
// Source Sets Configuration
sourceSets {
create("libs") {
java {
srcDir("src").include(listOf("org/openstreetmap/**"))
}
}
main {
java {
srcDir("src").include("org/openstreetmap/**")
}
resources {
srcDir(project.projectDir).include("images/**")
}
}
}
configurations {
create("externalLibs")
}
dependencies {
// Libraries to be packed into the JAR
packIntoJar("org.locationtech.jts:jts-core:1.19.0")
packIntoJar("org.locationtech.jts.io:jts-io-common:1.19.0")
packIntoJar("org.openpnp:opencv:4.7.0-0")
packIntoJar("com.fasterxml.jackson.core:jackson-databind:2.15.2")
packIntoJar("com.squareup.okhttp3:okhttp:4.10.0")
}
josm {
pluginName = "josm_magic_wand"
debugPort = 1729
josmCompileVersion = "18700"
manifest {
description = "JOSM plugin for select areas by color range."
mainClass = "org.openstreetmap.josm.plugins.devseed.JosmMagicWand.MainJosmMagicWandPlugin"
minJosmVersion = "18193"
author = "yunica"
canLoadAtRuntime = true
iconPath = "images/dialogs/magicwand.svg"
website = URL("https://github.com/developmentseed/JosmMagicWand")
minJavaVersion = 11
}
}