This repository was archived by the owner on Feb 6, 2023. It is now read-only.
forked from MnMaxon/AutoPickup
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
99 lines (81 loc) · 2.19 KB
/
build.gradle
File metadata and controls
99 lines (81 loc) · 2.19 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
import de.undercouch.gradle.tasks.download.Download
buildscript {
repositories {
jcenter()
}
dependencies {
classpath group: 'com.github.rodionmoiseev.gradle.plugins', name: 'idea-utils', version: '0.2'
}
}
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
id 'de.undercouch.download' version "4.1.2"
id "org.sonarqube" version "3.4.0.2513"
}
// include( "gradle/spigot.gradle")
group "com.philderbeast.autopickup"
version project.property("version")
sourceCompatibility = project.property("sourceversion")
targetCompatibility = project.property("sourceversion")
repositories
{
flatDir {
dirs 'libs'
}
maven { url('https://hub.spigotmc.org/nexus/content/repositories/snapshots/') }
maven { url('https://oss.sonatype.org/content/repositories/snapshots')}
mavenCentral()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/thephilderbeast/autopickup")
credentials {
username = project.findProperty("gpr.user")
password = project.findProperty("gpr.key")
}
}
}
publications {
jar(MavenPublication) {
from(components.java)
pom {
name = 'autopickup'
description = 'project.description'
url = "https://github.com/ThePhilderbeast/AutoPickup"
scm {
url = "https://github.com/ThePhilderbeast/AutoPickup"
}
}
}
}
}
jacoco {
toolVersion = "0.8.5"
reportsDir = file("$buildDir/jacoco")
}
jacocoTestReport
{
reports
{
xml.enabled = true
html.enabled = true
}
}
sonarqube {
properties {
property "sonar.projectKey", "ThePhilderbeast_AutoPickup"
}
}
dependencies
{
implementation 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.16:1.5.0'
// https://mvnrepository.com/artifact/commons-io/commons-io
testImplementation 'commons-io:commons-io:2.11.0'
}
apply from: "gradle/spigot.gradle"