Skip to content

Commit 9c76d23

Browse files
committed
all prepared for publishing to the gradle repo
1 parent 9be05d7 commit 9c76d23

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

build.gradle

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
buildscript {
2+
repositories {
3+
maven {
4+
url "https://plugins.gradle.org/m2/"
5+
}
6+
}
7+
dependencies {
8+
classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
9+
}
10+
}
11+
112
apply plugin: 'java'
213
apply plugin: 'idea'
314
apply plugin: 'eclipse'
415
apply plugin: 'maven'
16+
apply plugin: "com.gradle.plugin-publish"
517

618
group = 'net.minecraftforge.gradle'
719
version = '2.0-SNAPSHOT'
@@ -20,7 +32,7 @@ repositories {
2032
name = "eclipse"
2133
url = "https://repo.eclipse.org/content/groups/eclipse/"
2234
}
23-
//jcenter()
35+
jcenter() // get as many deps from here as possible
2436
mavenCentral()
2537

2638
// because of the GradleStart stuff
@@ -137,6 +149,36 @@ test {
137149
exclude "**/ExtensionMcpMappingTest*"
138150
}
139151

152+
pluginBundle {
153+
website = 'http://www.gradle.org/'
154+
vcsUrl = 'https://github.com/MinecraftForge/ForgeGradle'
155+
description = 'Gradle plugin for all Minecraft mod development needs'
156+
tags = ['forge', 'minecraft', 'minecraftforge', 'sponge', 'mcp']
157+
158+
plugins {
159+
patcher {
160+
id = 'net.minecraftforge.gradle.patcher'
161+
displayName = 'Mincraft Patcher Plugin'
162+
}
163+
tweakerClient {
164+
id = 'net.minecraftforge.gradle.tweaker-client'
165+
displayName = 'Mincraft Client Tweaker Plugin'
166+
}
167+
tweakerServer {
168+
id = 'net.minecraftforge.gradle.tweaker-server'
169+
displayName = 'Mincraft Server Tweaker Plugin'
170+
}
171+
forge {
172+
id = 'net.minecraftforge.gradle.forge'
173+
displayName = 'MincraftForge Mod Development Plugin'
174+
}
175+
176+
launch4j {
177+
id = 'net.minecraftforge.gradle.launch4j'
178+
displayName = 'Specialized Launch4J Gradle Plugin'
179+
}
180+
}
181+
}
140182

141183
uploadArchives {
142184
repositories.mavenDeployer {

0 commit comments

Comments
 (0)