forked from vZome/vzome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (58 loc) · 1.87 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
74
75
group = 'com.vzome'
version = '7.1'
wrapper() {
gradleVersion = '7.5.1' //version required
}
// These environment variables are automatically available during a Jenkins build
ext.buildNumber = System.getenv( "BUILD_NUMBER" ) ?: '999'
ext.gitCommit = System.getenv( "GIT_COMMIT" ) ?: 'HEAD'
ext.githubRepoName = System.getenv( "GITHUB_REPO_NAME" ) ?: ''
// These environment variables must be configured in the Jenkins job explicitly.
ext.githubClientId = System.getenv( "GITHUB_CLIENT_ID" )
ext.githubClientSecret = System.getenv( "GITHUB_CLIENT_SECRET" )
ext.keychain = System.getenv( "SIGNING_KEYCHAIN" ) ?: 'login.keychain'
ext.appName = 'vZome'
ext.edition = appName
// Specify common settings for all subprojects
subprojects {
apply plugin: 'java-library'
apply plugin: 'eclipse'
compileJava {
// set these to 11 for Java 11
// set them to 1.8 for Java 8
sourceCompatibility = 17
targetCompatibility = 17
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
// For EGit
maven { url 'https://repo.eclipse.org/content/groups/releases' }
maven { url 'https://jogamp.org/deployment/maven' }
ivy { // not really an Ivy repo, but this pattern lets us automate the bare JAR download for vecmath
url "https://jogamp.org/deployment"
metadataSources {
artifact();
}
patternLayout {
artifact "[organization]/[revision]/[artifact].[ext]"
}
}
}
// see platform/mac/build.gradle, search for "error -5341"
// buildDir = rootProject.buildDir
group = rootProject.group
version = rootProject.version
description = rootProject.name + '-' + project.name
}
project(':desktop') {
dependencies {
implementation project(':core')
}
}
project(':server') {
dependencies {
implementation project(':desktop')
implementation project(':core')
}
}