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 base64 | |
| import json | |
| import logging | |
| import time | |
| import click | |
| import requests | |
| from discord_webhook import DiscordWebhook | |
| GC_PROJECT_ID = "1019088744576" |
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
| apply plugin: 'java' | |
| apply plugin: 'war' | |
| apply plugin: 'com.bmuschko.tomcat-base' | |
| buildscript { | |
| repositories { | |
| jcenter() | |
| mavenCentral() | |
| maven { | |
| url "https://plugins.gradle.org/m2/" |
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
| task sysPropCheck << { | |
| if (System.getenv('sysproptest')) | |
| println 'sysproptest is set to ' + System.getenv('sysproptest') | |
| else | |
| println 'set sysproptest first!' | |
| } | |
| //Output: | |
| // $ gradle -q sysPropCheck | |
| // set sysproptest first! |
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
| apply plugin: 'java' | |
| task gen(type: Jar){ | |
| baseName = 'genJar' | |
| with jar | |
| } | |
| task gen2(type: Jar){ | |
| baseName = 'gen2Jar' | |
| from sourceSets.main.output |
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
| task generateThenCopy()<<{ | |
| newFile('codegenDestination/dynamically-generated.txt', 'dynamic file content') | |
| zip{ | |
| from 'source' | |
| from 'codegenDestination' | |
| } | |
| } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Configure class="org.mortbay.jetty.Server"> | |
| <!-- =========================================================== --> | |
| <!-- Initialize an mbean server --> | |
| <!-- =========================================================== --> | |
| <!-- Use the jdk 1.5 platformMBeanServer --> | |
| <Call id="MBeanServer" class="java.lang.management.ManagementFactory" name="getPlatformMBeanServer"/> | |
| <!-- =========================================================== --> | |
| <!-- Initialize the Jetty MBean container --> |
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
| buildscript { | |
| repositories{ | |
| maven{url 'http://repo1.maven.org/maven2/'} | |
| } | |
| dependencies { | |
| classpath "org.hibernate:hibernate-gradle-plugin:5.0.7.Final" | |
| } | |
| } | |
| apply plugin: 'org.hibernate.orm' |
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
| { | |
| "swagger":"2.0", | |
| "info":{ | |
| "description":"We Foo", | |
| "version":"1.0", | |
| "title":"Service REST API", | |
| "termsOfService":"[email protected]", | |
| "contact":{ | |
| "name":"Foundation team" | |
| }, |
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
| apply plugin:'java' | |
| repositories{ | |
| jcenter() | |
| } | |
| dependencies { | |
| compile("org.springframework.boot:spring-boot-gradle-plugin:1.3.2.RELEASE") { | |
| } | |
| } |
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
| runtime - Runtime classpath for source set 'main'. | |
| \--- org.springframework.boot:spring-boot-gradle-plugin:1.3.2.RELEASE | |
| +--- org.springframework.boot:spring-boot-loader-tools:1.3.2.RELEASE | |
| | \--- org.springframework:spring-core:4.2.4.RELEASE | |
| | \--- commons-logging:commons-logging:1.2 | |
| \--- io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE |
NewerOlder