crotwell / gradle-macappbundle

A Gradle Plugin to create a Mac OSX .app application and dmg based on the project.
Apache License 2.0
95 stars 33 forks source link

Could not find edu.sc.seis:gradle-macappbundle:1.0.8. #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to upgrade to version 1.0.8 and I'm getting the following build 
output: 

* What went wrong:
A problem occurred configuring project ':ChessCrafterDesktop'.
> Could not resolve all dependencies for configuration 
':ChessCrafterDesktop:classpath'.
   > Could not find edu.sc.seis:gradle-macappbundle:1.0.8.
     Required by:
         chess:ChessCrafterDesktop:unspecified

My build.gradle file is as follows:

-------------------------------------------------

apply plugin: 'java'

sourceCompatibility = 1.6
version = '1.0'

sourceSets.main {
    java {
        srcDirs = ['src']
    }
    resources {
        srcDir 'resources'
    }
}

repositories {
    mavenCentral()
}

dependencies {
    compile project(':ChessCrafterShared')
    compile group: 'com.google.guava', name: 'guava', version: '15.0'
}

jar {
    manifest.attributes("Main-Class": "gui.Driver", "provider": "gradle")
    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}

apply plugin: 'macAppBundle'

macAppBundle {
    mainClassName = "gui.Driver"
    appName = "Chess Crafter"
}

buildscript {
    repositories {
        ivy {
            artifactPattern 'http://gradle-macappbundle.googlecode.com/files/[module]-[revision].[ext]'
        }
    }

    dependencies {
        classpath 'edu.sc.seis:gradle-macappbundle:1.0.8'
    }
}

-------------------------------------------------

Everything works fine if I use 1.0.4 as the classpath, but I'd like to upgrade 
to the latest version

Original issue reported on code.google.com by drewhannay on 13 Oct 2013 at 7:29

GoogleCodeExporter commented 9 years ago
I think this is due to the downloads option at google code not allowing an http 
HEAD query, which gradle uses. This used to be ok, but I think something 
changed in how gradle works.

Probably the best solution is for me to move the jar to some more like a real 
maven or ivy repository on some other host.

Original comment by crotwell@seis.sc.edu on 13 Oct 2013 at 7:53

GoogleCodeExporter commented 9 years ago
Ah, okay, that makes sense. I thought for sure I was doing something wrong (I'm 
very new to gradle). :)

Original comment by drewhannay on 13 Oct 2013 at 7:55

GoogleCodeExporter commented 9 years ago

macappbundle is now available from mavenCentral, which should fix this issue.

The group and artifact ids have changed, see the main project page for an 
example of how to us them, but it basically should be:

apply plugin: 'macAppBundle'

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'edu.sc.seis.gradle:macappbundle:1.0.9'
    }
}

Original comment by crotwell@seis.sc.edu on 18 Oct 2013 at 5:55