testCompileOnly - Compile dependencies for source set 'test'. +--- project :bestbooks-core | +--- org.springframework.boot:spring-boot-starter-freemarker: FAILED | +--- org.springframework.boot:spring-boot-starter-web: FAILED | +--- org.springframework.boot:spring-boot-devtools: FAILED | +--- org.springframework.boot:spring-boot-starter-actuator: FAILED | +--- org.springframework.boot:spring-boot-starter-undertow: FAILED | +--- org.springframework.boot:spring-boot-starter-security: FAILED | +--- org.springframework.boot:spring-boot-starter-data-jpa: FAILED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A very basic regex based parser for Asciidoc. | |
* | |
* Based on Slimdown (Markdown) parsers: | |
* - https://gist.github.com/jbroadway/2836900 | |
* - https://gist.github.com/renehamburger/12f14a9bd9297394e5bd | |
* - https://gist.github.com/paulcuth/8967731 | |
* | |
* @author Erik Pragt | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
import groovy.json.JsonSlurper | |
/** | |
* Displays the status of registered Spring Boot URL's. | |
* To register URL's, create a file called healthcheck.txt in the following format | |
* | |
* <name>,<url> | |
* | |
* Eg: healthcheck.txt: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
public class Main { | |
public static void main(String[] args) throws IOException, ScriptException { | |
ScriptEngineManager manager = new ScriptEngineManager(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group='org.gperfutils', module='gbench', version='0.4.2-groovy-2.1') | |
import java.lang.String | |
trait NoStackTrace { | |
Throwable fillInStackTrace() { | |
return this | |
} | |
} | |
class ExpensiveException extends RuntimeException { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void "test filter with find on name"() { | |
setup: | |
new Conference( | |
name: 'test', | |
startdate: new Date() | |
).save(flush: true) | |
expect: | |
service.filterConferences(new FilterCommand(name: name)).size() == expected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group = "org.twitter4j", module = "twitter4j-core", version = "4.0.2") | |
import twitter4j.* | |
Twitter twitter = new TwitterFactory().instance | |
def user = twitter.verifyCredentials() | |
println "Nb followers de ${user.name} (alias ${user.screenName}) : ${user.followersCount}" | |
long cursor = -1 | |
def followers = twitter.getFollowersList(user.screenName, cursor, 200) | |
followers.each {println "${it.screenName} - ${it.name}"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group='org.gperfutils', module='gbench', version='0.4.2-groovy-2.1') | |
import java.lang.String | |
trait NoStackTrace { | |
Throwable fillInStackTrace() { | |
return this | |
} | |
} | |
class ExpensiveException extends RuntimeException { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6) |