Skip to content

Instantly share code, notes, and snippets.

class AndroidLanguageSourceSet extends BaseLanguageSourceSet {
}
class Rules {
@Defaults
public static void addDefaultAndroidSourceSet(@Path("android.sources") ModelMap<FunctionalSourceSet> sources) {
sources.all(new Action<FunctionalSourceSet>() {
@Override
class AndroidLanguageSourceSet extends BaseLanguageSourceSet {
}
class Rules {
@Defaults
public static void addDefaultAndroidSourceSet(@Path("android.sources") ModelMap<FunctionalSourceSet> sources) {
sources.all(new Action<FunctionalSourceSet>() {
@Override
apply plugin: GreetingPlugin
// Configure the 'greeting' extension object
greeting {
// Configure its 'message' property
message = 'Hi!'
}
class GreetingPlugin implements Plugin<Project> {

In this build, only the ':foo' subproject has had the java plugin applied.

As expected, only the ':foo' project has java-plugin related tasks, e.g. assemble.

However, both the ':foo' and ':foo:bar' subprojects have source sets configured.

Why does the ':foo:bar' subproject have source sets at all? Is this a bug?


public class Main { }
commit fd9078803a46a058a97608e1ebae02cc448d8a9a
Author: Chris Beams <[email protected]>
Date: Thu Jun 25 17:24:21 2015 +0200
Enable remember me authentication
diff --git src/main/java/myapp/config/SecurityConfig.java src/main/java/myapp/config/SecurityConfig.java
index 979ccf4..1e31a77 100644
--- src/main/java/myapp/config/SecurityConfig.java
+++ src/main/java/myapp/config/SecurityConfig.java
commit 354f3886f2e457463b446f0f0360ec97388b7f67 (HEAD, origin/master, origin/HEAD, master)
Author: Chris Beams <[email protected]>
Date: Thu Feb 26 12:12:04 2015 +0100
Externalize http sessions to Redis when on Heroku
We are now running the site with multiple dyno instances on Heroku,
but Heroku does not support sticky sessions [1]. This means that signed
in users don't stay signed in as Heroku load balances user requests
across these multiple instances.
37,39c37,39
< -moz-animation: blink 1s infinite steps(1, start);
< -ms-animation: blink 1s infinite steps(1, start);
< animation: blink 1s infinite steps(1, start);
---
> -moz-animation: blink 1s infinite steps(1, start);
> -ms-animation: blink 1s infinite steps(1, start);
> animation: blink 1s infinite steps(1, start);
42c42
< 0%, 100% {
/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7537 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 13.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 13.app/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents
@cbeams
cbeams / -
Created October 24, 2014 12:17
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7534 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 13.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 13.app/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents