Skip to content

Commit 7cd65d5

Browse files
author
gateio
committed
update to v6.97.0
1 parent 49a7ac6 commit 7cd65d5

567 files changed

Lines changed: 133442 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
*.class
2+
3+
# Mobile Tools for Java (J2ME)
4+
.mtj.tmp/
5+
6+
# Package Files #
7+
*.jar
8+
*.war
9+
*.ear
10+
11+
# exclude jar for gradle wrapper
12+
!gradle/wrapper/*.jar
13+
14+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
15+
hs_err_pid*
16+
17+
# build files
18+
**/target
19+
target
20+
.gradle
21+
build
22+
*.iml

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Generated by OpenAPI Generator: https://openapi-generator.tech
3+
#
4+
# Ref: https://docs.travis-ci.com/user/languages/java/
5+
#
6+
language: java
7+
jdk:
8+
- openjdk12
9+
- openjdk11
10+
- openjdk10
11+
- openjdk9
12+
- openjdk8
13+
before_install:
14+
# ensure gradlew has proper permission
15+
- chmod a+x ./gradlew
16+
script:
17+
# test using maven
18+
#- mvn test
19+
# test using gradle
20+
- gradle test
21+
# test using sbt
22+
# - sbt test

README.md

Lines changed: 703 additions & 0 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
apply plugin: 'idea'
2+
apply plugin: 'eclipse'
3+
apply plugin: 'java'
4+
5+
group = 'io.gate'
6+
version = '6.97.0'
7+
8+
buildscript {
9+
repositories {
10+
maven { url "https://repo1.maven.org/maven2" }
11+
jcenter()
12+
}
13+
dependencies {
14+
classpath 'com.android.tools.build:gradle:2.3.+'
15+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
16+
}
17+
}
18+
19+
repositories {
20+
jcenter()
21+
}
22+
sourceSets {
23+
main.java.srcDirs = ['src/main/java']
24+
}
25+
26+
if(hasProperty('target') && target == 'android') {
27+
28+
apply plugin: 'com.android.library'
29+
apply plugin: 'com.github.dcendents.android-maven'
30+
31+
android {
32+
compileSdkVersion 25
33+
buildToolsVersion '25.0.2'
34+
defaultConfig {
35+
minSdkVersion 14
36+
targetSdkVersion 25
37+
}
38+
compileOptions {
39+
sourceCompatibility JavaVersion.VERSION_1_8
40+
targetCompatibility JavaVersion.VERSION_1_8
41+
}
42+
43+
// Rename the aar correctly
44+
libraryVariants.all { variant ->
45+
variant.outputs.each { output ->
46+
def outputFile = output.outputFile
47+
if (outputFile != null && outputFile.name.endsWith('.aar')) {
48+
def fileName = "${project.name}-${variant.baseName}-${version}.aar"
49+
output.outputFile = new File(outputFile.parent, fileName)
50+
}
51+
}
52+
}
53+
54+
dependencies {
55+
provided 'javax.annotation:javax.annotation-api:1.3.2'
56+
}
57+
}
58+
59+
afterEvaluate {
60+
android.libraryVariants.all { variant ->
61+
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
62+
task.description = "Create jar artifact for ${variant.name}"
63+
task.dependsOn variant.javaCompile
64+
task.from variant.javaCompile.destinationDir
65+
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
66+
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
67+
artifacts.add('archives', task);
68+
}
69+
}
70+
71+
task sourcesJar(type: Jar) {
72+
from android.sourceSets.main.java.srcDirs
73+
classifier = 'sources'
74+
}
75+
76+
artifacts {
77+
archives sourcesJar
78+
}
79+
80+
} else {
81+
82+
apply plugin: 'java'
83+
apply plugin: 'maven'
84+
85+
sourceCompatibility = JavaVersion.VERSION_1_8
86+
targetCompatibility = JavaVersion.VERSION_1_8
87+
88+
install {
89+
repositories.mavenInstaller {
90+
pom.artifactId = 'gate-api'
91+
}
92+
}
93+
94+
task execute(type:JavaExec) {
95+
main = System.getProperty('mainClass')
96+
classpath = sourceSets.main.runtimeClasspath
97+
}
98+
}
99+
100+
dependencies {
101+
compile "com.google.code.findbugs:jsr305:3.0.2"
102+
compile 'com.squareup.okhttp3:okhttp:4.9.3'
103+
compile 'com.squareup.okhttp3:logging-interceptor:4.9.3'
104+
compile 'com.google.code.gson:gson:2.10'
105+
compile 'io.gsonfire:gson-fire:1.8.4'
106+
compile 'commons-codec:commons-codec:1.14'
107+
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
108+
testCompile 'junit:junit:4.13'
109+
}
110+
111+
javadoc {
112+
options.tags = [ "http.response.details:a:Http Response Details" ]
113+
}

build.sbt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
lazy val root = (project in file(".")).
2+
settings(
3+
organization := "io.gate",
4+
name := "gate-api",
5+
version := "6.97.0",
6+
scalaVersion := "2.11.4",
7+
scalacOptions ++= Seq("-feature"),
8+
javacOptions in compile ++= Seq("-Xlint:deprecation"),
9+
publishArtifact in (Compile, packageDoc) := false,
10+
resolvers += Resolver.mavenLocal,
11+
libraryDependencies ++= Seq(
12+
"com.squareup.okhttp3" % "okhttp" % "4.9.3",
13+
"com.squareup.okhttp3" % "logging-interceptor" % "4.9.3",
14+
"com.google.code.gson" % "gson" % "2.10",
15+
"org.apache.commons" % "commons-lang3" % "3.10",
16+
"commons-codec" % "commons-codec" % "1.14",
17+
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
18+
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
19+
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
20+
"junit" % "junit" % "4.13" % "test",
21+
"com.novocode" % "junit-interface" % "0.10" % "test"
22+
)
23+
)

0 commit comments

Comments
 (0)