forked from LegendaryHeart8/VirusGame
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
59 lines (48 loc) · 1.05 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.john-tipper.gradle:git-semantic-versioning:1.1'
}
}
plugins {
id 'java'
id 'maven-publish'
}
apply plugin: 'git-semantic-versioning'
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'org.processing:core:3.3.7'
}
sourceSets.main.java.srcDirs = ['source']
sourceSets.main.resources.srcDirs = ['source/virus/data']
group = 'me.sirati97'
version = '0.2.1-SNAPSHOT' //https://semver.org/
description = 'virusgame'
//java.sourceCompatibility = JavaVersion.VERSION_1_8
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes(
'Main-Class': 'virus.JavaLoader'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}