-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (80 loc) · 2.58 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
}
repositories {
mavenCentral()
}
group = "io.github.mrtjp"
archivesBaseName = "fabrication-engine"
version = System.getenv("AUTO_GENERATED_VERSION") ?: "0.0.0.1"
sourceSets {
compiletest
}
configurations {
compiletestImplementation.extendsFrom implementation
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation sourceSets.main.output
compiletestImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
compiletestImplementation 'org.junit.platform:junit-platform-engine:1.8.2'
compiletestImplementation sourceSets.main.output
}
test {
useJUnitPlatform()
}
task compilerTest(type: Test) {
useJUnitPlatform()
testClassesDirs = sourceSets.compiletest.output.classesDirs
classpath = sourceSets.compiletest.runtimeClasspath
}
jacocoTestReport {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
reports {
xml.enabled = true
html.enabled = true
}
}
publishing {
repositories {
maven {
url "https://nexus.covers1624.net/repository/maven-releases/"
credentials {
username System.getenv('MAVEN_USER')
password System.getenv('MAVEN_PASS')
}
}
}
publications {
fabricationEngine(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName
version project.version
from components.java
pom {
name = "fabrication-engine"
description = "Simple compiler for tile-based logic circuits"
//The publish plugin doesnt like GString's here apparently..
url = "https://github.com/MrTJP/fabrication-engine".toString()
scm {
url = "https://github.com/MrTJP/fabrication-engine".toString()
connection = "scm:git:git://github.com/MrTJP/fabrication-engine.git".toString()
connection = "scm:git:[email protected]:MrTJP/fabrication-engine.git".toString()
}
issueManagement {
system = 'github'
url = "https://github.com/MrTJP/fabrication-engine/issues".toString()
}
developers {
developer {
id = 'mrtjp'
name = 'mrtjp'
}
}
}
}
}
}