Created
March 20, 2016 16:48
-
-
Save vlas-ilya/b43659512a9179ec6386 to your computer and use it in GitHub Desktop.
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
group 'test.thrift' | |
version '1.0-SNAPSHOT' | |
apply plugin: 'java' | |
allprojects { | |
apply plugin: "idea" | |
} | |
sourceCompatibility = 1.5 | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
testCompile group: 'junit', name: 'junit', version: '4.11' | |
} |
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
group 'test.thrift' | |
version '1.0-SNAPSHOT' | |
buildscript { | |
repositories { | |
maven { | |
url "https://plugins.gradle.org/m2/" | |
} | |
} | |
dependencies { | |
classpath "gradle.plugin.org.jruyi.gradle:thrift-gradle-plugin:0.3.1" | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'org.jruyi.thrift' | |
sourceCompatibility = 1.8 | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
compile 'org.apache.thrift:libthrift:0.9.3' | |
} | |
compileThrift { | |
recurse true | |
generator 'java', 'private-members' | |
} |
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
group 'test.thrift' | |
version '1.0-SNAPSHOT' | |
buildscript { | |
ext { | |
springBootVersion = '1.3.3.RELEASE' | |
} | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}" | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'spring-boot' | |
jar { | |
baseName = 'test.thrift' | |
version = '0.0.1-SNAPSHOT' | |
} | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
compile 'org.springframework.boot:spring-boot-starter' | |
compile project(':test.thrift.entity') | |
testCompile 'org.springframework.boot:spring-boot-starter-test' | |
} | |
task wrapper(type: Wrapper) { | |
gradleVersion = '2.9' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment