1
0
Fork 0
mirror of https://github.com/ethauvin/CompileOnlyPlugin.git synced 2025-04-25 00:37:14 -07:00

Released version 1.0.0 of the plugin.

It adds the java plugin automatically if the java or the groovy plugin is missing.

When the idea or eclipse plugin is used, it also adds the new dependencies to their provided scope
This commit is contained in:
Peter Daum 2013-08-12 20:59:48 +02:00
parent 3f8e5793d9
commit 0646da0809
6 changed files with 219 additions and 27 deletions

View file

@ -1,32 +1,84 @@
/*
* This build file was auto generated by running the Gradle 'buildSetup' task
* by 'peter' at '8/12/13 8:56 PM' with Gradle 1.7
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/1.7/userguide/tutorial_java_projects.html
*/
import org.gradle.api.artifacts.maven.MavenDeployment
/*
// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
// In this section you declare where to find the dependencies of your project
repositories {
// Use 'maven central' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
// In this section you declare the dependencies for your production and test code
dependencies {
// The production code uses the SLF4J logging API at compile time
compile 'org.slf4j:slf4j-api:1.7.5'
// Declare the dependency for your favourite test framework you want to use in your tests.
// TestNG is also supported by the Gradle Test task. Just change the
// testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
// 'test.useTestNG()' to your build script.
testCompile "junit:junit:4.11"
compile gradleApi()
compile localGroovy()
}
*/
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
archiveName = archiveName.toLowerCase()
}
jar {
archiveName = archiveName.toLowerCase()
}
task javadocJar(type: Jar, dependsOn: groovydoc) {
from 'build/docs/groovydoc'
classifier = 'javadoc'
archiveName = archiveName.toLowerCase()
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
if (hasProperty('sonatypeUsername')) {
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom {
project {
name 'CompileOnlyPlugin'
packaging 'jar'
description 'Adds a compile only configuration to the Java plugin of Gradle'
url 'http://coders-kitchen.github.com'
scm {
url 'scm:git@github:CodersKitchen/CompileOnlyPlugin.git'
connection 'scm:git@github:CodersKitchen/CompileOnlyPlugin.git'
developerConnection 'scm:git@github:CodersKitchen/CompileOnlyPlugin.git'
}
licenses {
license {
name 'The MIT License (MIT)'
url 'http://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id 'peterdaum'
name 'Peter Daum'
}
}
}
artifactId = project.name.toLowerCase()
}
}
}
}
}