krallin / gradle-macappbundle

Automatically exported from code.google.com/p/gradle-macappbundle
1 stars 0 forks source link

Deprecated dynamic properties #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not able to configure the properties using Gradle 1.4. I also tried 1.3 and 
1.2, with similar results. Is there a specific version of Gradle I should be 
using, or is there an error in my script? 

What steps will reproduce the problem?

apply plugin: 'java'

sourceCompatibility = 1.6
version = '0.1'

dependencies {
    compile fileTree(dir: 'lib', include: '**/*.jar')
    runtime fileTree(dir: 'lib', include: '**/*.jar')
}

jar {
    manifest {
        attributes 'Implementation-Title': 'TestSketch',
                   'Implementation-Version': version
    }
}

apply plugin: 'macAppBundle'

macAppBundle {
    appName = "TestApp"
    mainClassName = "gui.TestSketch"
}

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

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

What is the expected output? What do you see instead?

I expected to find a build/macApp/TestSketch.app file. Instead there is a 
build/macApp/gridmon.app and nothing happens when I launch it. Here is the 
build output:

Creating properties on demand (a.k.a. dynamic properties) has been deprecated 
and is scheduled to be removed in Gradle 2.0. Please read 
http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtensi
on.html for information on the replacement for dynamic properties.
Deprecated dynamic property: "appName" on "root project 'gridmon'", value: 
"TestApp".
:copyStub
Deprecated dynamic property: "dest" on "task ':copyStub'", value: 
"/Users/tester1/dev/ja...".
Deprecated dynamic property: "outStream" on "task ':copyStub'", value: 
"java.io.BufferedOutput...".
Deprecated dynamic property: "buf" on "task ':copyStub'", value: "[B@a62812d".
Deprecated dynamic property: "inStream" on "task ':copyStub'", value: 
"sun.net.www.protocol.j...".

What version of the product are you using? On what operating system?
1.0.4, tried with Gradle 1.2, 1.3 and 1.4. 

Original issue reported on code.google.com by peter.t....@gmail.com on 4 Feb 2013 at 7:39

GoogleCodeExporter commented 9 years ago

Please switch to version 1.0.8 and see if your problems are already fixed.

 classpath 'edu.sc.seis:gradle-macappbundle:1.0.8'

Philip

Original comment by crotwell@seis.sc.edu on 4 Feb 2013 at 9:13

GoogleCodeExporter commented 9 years ago
no response from reporter, but verified fixed in 1.0.8

Original comment by crotwell@seis.sc.edu on 3 Mar 2013 at 3:32