Quantcast
Channel: Technophile Blog » Groovy
Viewing all articles
Browse latest Browse all 4

Gradle Deprecations

$
0
0

Gradle Deprecations – Common Mistakes

Maven Repository

OLD

mavenCentral()

NEW

repositories {
  maven {
    url “http://repo1.maven.org/maven2/”
  }
}


Intellij Idea Plugin

OLD

apply plugin:’idea’

NEW

Do not use, IntelliJ will import Maven, Gradle and Eclipse projects (unless you are using a dinosaur version of Idea).

The plugin generates a very very old IntelliJ IDEA project, which is exactly
the same out-of-date plugin provided by Maven (hmm… curious?).


Dependencies

OLD

groovy localGroovy()

or

groovy “org.codehaus.groovy:…”

NEW

compile “org.codehaus.groovy:groovy-all:2.1.6″


Example

        apply plugin:'groovy'
        apply plugin:'eclipse'

        repositories {
          maven {
            url "http://repo1.maven.org/maven2/"
          }

        task wrapper(type:Wrapper) { gradleVersion = '1.6' }

        dependencies {
          compile "org.codehaus.groovy:groovy-all:2.1.6"
          testCompile "org.spockframework:spock-core:0.7-groovy-2.0"
        }
    

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images