1- def VERSION_NAME = ' 0.2.1'
2-
31buildscript {
42 repositories {
53 jcenter()
@@ -9,119 +7,4 @@ buildscript {
97 }
108}
119
12- repositories {
13- jcenter()
14- }
15-
16- apply plugin : ' java'
17- apply plugin : ' maven'
18- apply plugin : ' com.jfrog.bintray'
19-
20- dependencies {
21- implementation ' com.google.code.gson:gson:2.8.5'
22- testImplementation ' junit:junit:4.12'
23- }
24-
25- compileJava {
26- sourceCompatibility = ' 1.7'
27- targetCompatibility = ' 1.7'
28- }
29-
30- compileTestJava {
31- sourceCompatibility = ' 1.8'
32- targetCompatibility = ' 1.8'
33- }
34-
35- test {
36- testLogging {
37- exceptionFormat = ' full'
38- }
39- }
40-
41- version = VERSION_NAME
42-
43- task sourcesJar (type : Jar ) {
44- from sourceSets. main. allSource
45- classifier = ' sources'
46- }
47-
48- task javadocJar (type : Jar , dependsOn : javadoc) {
49- classifier = ' javadoc'
50- from javadoc. destinationDir
51- }
52-
53- artifacts {
54- archives javadocJar
55- archives sourcesJar
56- }
57-
58- ext {
59- publishedGroupId = ' com.shopify.graphql.support'
60- artifact = ' support'
61- libraryName = ' graphql-support'
62-
63- libraryDescription = ' GraphQL support package generated client code'
64-
65- siteUrl = ' https://github.com/Shopify/graphql_java_gen'
66- gitUrl = ' https://github.com/Shopify/graphql_java_gen.git'
67-
68- licenseName = ' The MIT License'
69- licenseUrl = ' https://opensource.org/licenses/MIT'
70- allLicenses = [" MIT" ]
71- }
72-
73- group = publishedGroupId
74-
75- install {
76- repositories. mavenInstaller {
77- // Generates POM.xml with proper parameters
78- pom {
79- project {
80- groupId publishedGroupId
81- artifactId artifact
82-
83- name libraryName
84- description libraryDescription
85- url siteUrl
86-
87- licenses {
88- license {
89- name licenseName
90- url licenseUrl
91- }
92- }
93-
94- scm {
95- connection gitUrl
96- developerConnection gitUrl
97- url siteUrl
98- }
99- }
100- }
101- }
102- }
103-
104- bintray {
105- /*
106- These values can be found on https://bintray.com/profile/edit
107- BINTRAY_USER : your personal profile name (from "Your Profile")
108- BINTRAY_KEY : found on the left menu, under "API Key"
109- */
110- user = System . getenv(' BINTRAY_USER' )
111- key = System . getenv(' BINTRAY_KEY' )
112-
113- configurations = [' archives' ]
114- publish = true
115- pkg {
116- userOrg = ' shopify'
117- repo = ' shopify-java'
118- name = libraryName
119- desc = libraryDescription
120- websiteUrl = siteUrl
121- vcsUrl = gitUrl
122- licenses = allLicenses
123- version {
124- name = VERSION_NAME
125- }
126- }
127- }
10+ apply from : ' graphql.java.gen.build.gradle'
0 commit comments