Skip to content

Commit

Permalink
Revert "Migrate to maven-publish because gradle screwed up the old ta…
Browse files Browse the repository at this point in the history
…sk."

This reverts commit 9c103c4.
  • Loading branch information
LexManos committed Feb 15, 2019
1 parent 9c103c4 commit 7764e3e
Showing 1 changed file with 44 additions and 32 deletions.
76 changes: 44 additions & 32 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: "com.gradle.plugin-publish"
apply plugin: 'license'

Expand Down Expand Up @@ -232,17 +231,34 @@ pluginBundle {
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar

/*
pom {
//name = project.archivesBaseName
packaging = 'jar'
description = 'Gradle plugin for Forge'
//url = 'https://github.com/MinecraftForge/ForgeGradle'

uploadArchives {
repositories.mavenDeployer {

dependsOn 'build'

if (project.hasProperty('forgeMavenPass'))
{
repository(url: "https://files.minecraftforge.net/maven/manage/upload") {
authentication(userName: "forge", password: project.getProperty('forgeMavenPass'))
}
}
else
{
// local repo folder. Might wanna juset use gradle install if you wanans end it to maven-local
repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
}


pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'Gradle plugin for Forge'
url 'https://github.com/MinecraftForge/ForgeGradle'

scm {
url 'https://github.com/MinecraftForge/ForgeGradle'
Expand All @@ -251,35 +267,31 @@ publishing {
}

issueManagement {
system = 'github'
url = 'https://github.com/MinecraftForge/ForgeGradle/issues'
system 'github'
url 'https://github.com/MinecraftForge/ForgeGradle/issues'
}

licenses {
license {
name 'Lesser GNU Public License, Version 2.1'
url 'https://www.gnu.org/licenses/lgpl-2.1.html'
distribution 'repo'
}
}

developers {
developer {
id = 'AbrarSyed'
name = 'Abrar Syed'
id 'AbrarSyed'
name 'Abrar Syed'
roles { role 'developer' }
}
developer {
id = 'LexManos'
name = 'Lex Manos'
id 'LexManos'
name 'Lex Manos'
roles { role 'developer' }
}
}
}
*/
}
}
repositories {
maven {
if (project.hasProperty('forgeMavenPass')) {
credentials {
username 'forge' //project.properties.forgeMavenUser
password project.properties.forgeMavenPass
}
url 'https://files.minecraftforge.net/maven/manage/upload'
} else {
url 'file://' + rootProject.file('repo').getAbsolutePath()
}
}
}
}
Expand Down

0 comments on commit 7764e3e

Please sign in to comment.