-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
76 lines (64 loc) · 1.84 KB
/
build.gradle
File metadata and controls
76 lines (64 loc) · 1.84 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
plugins {
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version "0.20.0"
id 'maven-publish'
}
repositories {
maven { url = "https://repo.spongepowered.org/maven/" }
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
mavenCentral()
gradlePluginPortal()
}
version = '1.6'
group = 'io.shcm.shsupercm.fabric'
gradlePlugin {
// Define the plugin
plugins {
fletchingtable {
id = 'io.shcm.shsupercm.fabric.fletchingtable'
implementationClass = 'io.shcm.shsupercm.fabric.fletchingtable.FTGradlePlugin'
}
}
}
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
dependencies {
compileOnly group: 'commons-io', name: 'commons-io', version: '2.11.0'
compileOnly group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5'
compileOnly group: 'net.fabricmc', name: 'fabric-loom', version: '1.1-SNAPSHOT'
compileOnly group: 'net.fabricmc', name: 'mapping-io', version: '0.2.1'
}
task apiJar(type: Jar) {
archiveName "api.jar"
from sourceSets.main.output
from sourceSets.main.java.getSrcDirs()
include "io/shcm/shsupercm/fabric/fletchingtable/api/**"
}
jar.dependsOn(apiJar)
jar {
into("META-INF/jars") {
from apiJar
}
}
pluginBundle {
website = 'https://github.com/SHsuperCM/FletchingTable'
vcsUrl = 'https://github.com/SHsuperCM/FletchingTable'
description = 'Additions and automations for fabric-loom'
plugins {
fletchingtable {
displayName = "Fletching Table"
tags = ['fabric', 'fabricmc', 'annotation processor']
}
}
}
publishing {
repositories {
maven {
name = 'localPluginRepository'
url = './local-plugin-repository'
}
}
}