Last active
November 1, 2019 19:10
-
-
Save adamatti/3c1b063e71a14424b3db89710e293e22 to your computer and use it in GitHub Desktop.
Default files - Java #bootstrap
This file contains 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
root = true | |
[*.{groovy,gradle}] | |
end_of_line = lf | |
insert_final_newline = true | |
charset = utf-8 | |
indent_style = space | |
indent_size = 4 | |
[Makefile] | |
indent_style = tab |
This file contains 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
apply plugin:"groovy" | |
apply plugin:"idea" | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.5.0-beta-1' | |
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3' | |
compile group: 'com.sparkjava', name: 'spark-core', version: '2.6.0' | |
compile group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.1' | |
compile group: 'org.springframework', name: 'spring-context', version: '4.3.10.RELEASE' | |
testCompile group: 'org.spockframework', name: 'spock-spring', version: '1.1-groovy-2.4' | |
} | |
test { | |
maxParallelForks = Runtime.runtime.availableProcessors() | |
outputs.upToDateWhen { false } | |
} | |
idea { | |
module { | |
downloadJavadoc = false | |
downloadSources = false | |
iml.withXml { | |
def node = it.asNode() | |
def content = node.component.find { it.'@name' == 'NewModuleRootManager' }.content[0] | |
content.sourceFolder.each { sourceFolder -> | |
if (sourceFolder.@url?.endsWith('/resources')) { | |
sourceFolder.attributes().with { | |
boolean isTestSource = (remove('isTestSource') == 'true') | |
put('type', isTestSource ? 'java-test-resource' : 'java-resource') | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains 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
statusListener(ch.qos.logback.core.status.NopStatusListener) | |
appender("STDOUT", ConsoleAppender) { | |
encoder(PatternLayoutEncoder) { | |
pattern = "%d{HH:mm:ss.SSS} [%thread] %-5level - %logger.%method [line: %line] - %msg%n" | |
} | |
} | |
logger("adamatti", TRACE) | |
root(WARN,["STDOUT"]) |
This file contains 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
<configuration scan="true" scanPeriod="5 seconds"> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | |
</encoder> | |
</appender> | |
<logger name="adamatti" level="TRACE"/> | |
<root level="WARN"> | |
<appender-ref ref="STDOUT" /> | |
</root> | |
</configuration> |
This file contains 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
.DEFAULT_GOAL := help | |
.PHONY: help | |
help: ## show this help | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment