-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
44 lines (33 loc) · 1.24 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
plugins {
id 'java'
id 'com.gradle.plugin-publish' version '1.2.1'
id 'java-gradle-plugin'
}
apply from: 'gradle/property_loader.gradle'
def buildNumber = System.getenv('BUILD_NUMBER') ? System.getenv('BUILD_NUMBER') : System.getenv('TRAVIS_BUILD_NUMBER') ? System.getenv('TRAVIS_BUILD_NUMBER') : '0'
project.version = "${project.version}.${buildNumber}".toString()
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
implementation group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.5.13'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
}
gradlePlugin {
website = project.website
vcsUrl = project.source
plugins {
curseforgegradle {
id = project.group
displayName = project.archiveBaseName
description = project.description
tags.set(['curseforge', 'mod'])
implementationClass = "${project.group}.${project.archiveBaseName}Plugin"
}
}
}