Code Samples Here


(Ben Edwards) #1

Here is some code:

 grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.source.level = 1.6
grails.project.target.level = 1.6
//grails.project.war.file = "target/${appName}-${appVersion}.war"

grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // uncomment to disable ehcache
        // excludes 'ehcache'
    }
    log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    repositories {
        grailsCentral()
        // uncomment the below to enable remote dependency resolution
        // from public Maven repositories
        mavenCentral()
        mavenLocal()
        //mavenRepo "http://snapshots.repository.codehaus.org"
        //mavenRepo "http://repository.codehaus.org"
        //mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"
    }
    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.

        runtime 'com.github.spullara.mustache.java:builder:0.6'
    }

    plugins {
        build(":tomcat:$grailsVersion",
              ":release:1.0.0.RC3") {
            export = false
        }
    }
}

(james) #2

This code is interesting I approve.


(Andrew Urman) #3

u haker???


(Ben Edwards) #4

https://github.com/juano2310/Nest-on-SmartThings/blob/master/examples.php


(Cooper Lee) #5

Ben,

Do you have any code samples you could share about “cards” and “eventTiles” please?

Cooper


(Ben Edwards) #6

Adding @Jim - we got anything to share (or create)?


(Jim Anderson) #7

Nothing immediately available; I’ll work on creating something.


(Jim Anderson) #8

First off, my apologies for the time it took to get back to this conversation.

We don’t document the use of cards or SmartApp tiles because their use is for dashboard solution SmartApps (like the “Doors & Locks” or “Lights & Switches” solution apps), which is currently not supported for community development.

The documentation was not clear about this; I’ve updated it to hopefully be clearer.