Adds a compileOnly configuration to a Java based gradle build.
Groovy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

CompileOnlyPlugin

Adds a compileOnly configuration to a Java based Gradle build.

The plugin will also take care of registering the compilyOnly dependencies to the matching scopes of IntelliJ Idea and Eclipse

Usage

Add the following lines to your Gradle build script:

buildscript {
  repositories {
    mavenCentral()
  }
  dependencies {
    classpath 'com.coders-kitchen:compileonlyplugin:1.0.0'
  }
}

apply plugin: 'compileOnly'

dependencies {
  compileOnly <dependencies>
}

or if using Gradle 2.1 or higher:

plugins {
  id 'com.coders-kitchen.compileonlyplugin' version '1.0.0'
}

dependencies {
  compileOnly <dependencies>
}