-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
107 lines (88 loc) · 2.64 KB
/
Copy pathbuild.gradle
File metadata and controls
107 lines (88 loc) · 2.64 KB
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
102
103
104
105
106
107
wrapper {
gradleVersion = '7.6.1'
}
buildscript {
repositories {
maven { url 'https://mvn.topobyte.de' }
}
dependencies {
classpath 'de.topobyte:gradle-launch-and-install-plugin:0.0.5'
}
}
allprojects {
group = pGroup
version = pVersion
}
project(':shapefile4j') {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
}
project(':shapefile4j-util') {
apply plugin: 'application'
}
subprojects {
apply plugin: 'eclipse'
repositories {
maven {
url 'https://mvn.topobyte.de'
}
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
project(':shapefile4j') {
dependencies {
api 'de.topobyte:dbf4j:0.1.0'
api 'org.locationtech.jts:jts-core:1.19.0'
api 'commons-codec:commons-codec:1.16.0'
api 'org.slf4j:slf4j-api:1.7.36'
}
eclipse.project.name = 'shapefile4j'
if (project.hasProperty("topobyte")) {
apply from: 'file:///' + System.getProperty("user.home") \
+ '/.gradle/topobyte.gradle'
}
java {
withSourcesJar()
}
publishing {
publications {
library(MavenPublication) {
from components.java
}
}
}
}
project(':shapefile4j-util') {
apply plugin: 'de.topobyte.launch-and-install-gradle-plugin'
startScripts.enabled = false
launchAndInstall {
installationPath = 'topobyte/shapefile4j'
makeselfLabel = 'Shapefile4j'
def extraArgs = ['-Xmx8g']
createScript(project, 'de.topobyte.esri.shapefile.executables.DumpData', 'ShapefileDumpData')
createScript(project, 'de.topobyte.esri.shapefile.executables.Info', 'ShapefileInfo')
createScript(project, 'de.topobyte.esri.shapefile.executables.ShowFields', 'ShapefileShowFields')
createScript(project, 'de.topobyte.esri.shapefile.executables.ToSmxCollection', 'ShapefileToSmxCollection', extraArgs)
}
dependencies {
implementation project(':shapefile4j')
implementation 'de.topobyte:simple-mapfile-xml:0.1.0'
implementation 'de.topobyte:commons-cli-helper:0.1.0'
implementation 'de.topobyte:various-utils:0.0.1'
runtimeOnly 'org.slf4j:slf4j-log4j12:1.6.1'
runtimeOnly 'log4j:log4j:1.2.16'
}
task copyJars(type: Copy) {
into "$buildDir/lib-run"
from jar
}
task copyDeps(type: Copy) {
into "$buildDir/lib-run"
from configurations.runtimeClasspath
}
task createRuntime(dependsOn: [copyJars, copyDeps]) {
description 'Setup the execution environment for the main scripts'
}
}