Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit33b519f

Browse files
committed
[1.1.0-SNAPSHOT]
POM removedGradle 6.7 wuth gradle wrapper addedGradle configs and properties addedcodestyle.xml config addedgithub CI added
1 parenta4e4b09 commit33b519f

File tree

16 files changed

+882
-266
lines changed

16 files changed

+882
-266
lines changed

‎.editorconfig‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root =true
5+
6+
# all-encompassing default settings unless otherwise specified
7+
[*]
8+
end_of_line =lf
9+
charset =utf-8
10+
11+
# Yaml
12+
[{*.yml,*.yaml}]
13+
indent_size =2
14+
indent_style =space
15+
16+
# Property files
17+
[*.properties]
18+
indent_size =2
19+
indent_style =space
20+
21+

‎.gitattributes‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Handle line endings automatically for files detected as text
2+
# and leave all files detected as binary untouched.
3+
*text=auto
4+
5+
#
6+
# The above will handle all files NOT found below
7+
#
8+
# These files are text and should be normalized (Convert crlf => lf)
9+
*.bashtexteol=lf
10+
*.csstextdiff=css
11+
*.dftext
12+
*.htmtextdiff=html
13+
*.htmltextdiff=htmleol=lf
14+
*.javatextdiff=javaeol=lf
15+
*.jstext
16+
*.jsontexteol=lf
17+
*.jsptexteol=lf
18+
*.jspftexteol=lf
19+
*.jspxtexteol=lf
20+
*.propertiestexteol=lf
21+
*.shtexteol=lf
22+
*.tldtext
23+
*.txttexteol=lf
24+
*.tagtext
25+
*.tagxtext
26+
*.xmltext
27+
*.ymltexteol=lf
28+
29+
# These files are binary and should be left untouched
30+
# (binary is a macro for -text -diff)
31+
*.classbinary
32+
*.dllbinary
33+
*.earbinary
34+
*.gifbinary
35+
*.icobinary
36+
*.jarbinary
37+
*.jpgbinary
38+
*.jpegbinary
39+
*.pngbinary
40+
*.sobinary
41+
*.warbinary

‎.github/workflows/gradle.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name:Java CI
2+
3+
on:
4+
push:
5+
branches:
6+
-master
7+
-dev
8+
schedule:
9+
-cron:"0 12 1 * *"
10+
pull_request:
11+
branches:
12+
-master
13+
-dev
14+
15+
jobs:
16+
build:
17+
runs-on:ubuntu-latest
18+
strategy:
19+
matrix:
20+
java:[ '1.8', '11' ]
21+
name:Java ${{ matrix.java }} setup
22+
23+
steps:
24+
-uses:actions/checkout@v1
25+
-name:Set up JDK
26+
uses:actions/setup-java@v1
27+
28+
with:
29+
java-version:${{ matrix.java }}
30+
31+
-name:Build with Gradle
32+
run:./gradlew build jacocoTestReport
33+
34+
-name:Analyze with SonarQube
35+
run:./gradlew sonarqube
36+
env:
37+
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
38+
SONAR_TOKEN:${{ secrets.SONAR_TOKEN }}

‎.gitignore‎

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,7 @@
1-
# Compiled class files
2-
*.class
3-
4-
# Log file
5-
*.log
6-
**/.log
7-
8-
# IntelliJ
9-
*.iml
10-
/.idea
11-
12-
# Package Files #
13-
*.jar
14-
*.war
15-
*.nar
16-
*.ear
17-
*.zip
18-
*.tar.gz
19-
*.rar
20-
21-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
22-
hs_err_pid*
23-
24-
# other
25-
/bin/
26-
/.classpath
27-
/.project
28-
/target/
29-
/out/
30-
/.DS_Store
311
/.settings/
32-
2+
.idea
3+
.idea/httpRequests
4+
*.iml
5+
.gradle
6+
build
7+
target/

‎.travis.yml‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎README.md‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#java-etherscan-api
22

3-
![travis](https://travis-ci.org/GoodforGod/java-etherscan-api.svg?branch=master)
4-
[![Maintainability](https://api.codeclimate.com/v1/badges/808997be2e69ff1ae8fe/maintainability)](https://codeclimate.com/github/GoodforGod/java-etherscan-api/maintainability)
5-
[![codecov](https://codecov.io/gh/GoodforGod/java-etherscan-api/branch/master/graph/badge.svg)](https://codecov.io/gh/GoodforGod/java-etherscan-api)
3+
[![Jitpack](https://jitpack.io/v/iSnow/java-etherscan-api.svg)](https://jitpack.io/#GoodforGod/java-etherscan-api)
64

75
[Etherscan](https://etherscan.io/apis) Java API implementation.
86

@@ -14,14 +12,14 @@ Library supports all available EtherScan *API* calls for all available *Ethereum
1412
<dependency>
1513
<groupId>com.github.goodforgod</groupId>
1614
<artifactId>java-etherscan-api</artifactId>
17-
<version>1.0.2</version>
15+
<version>1.1.0</version>
1816
</dependency>
1917
```
2018

2119
**Gradle**
2220
```groovy
2321
dependencies {
24-
compile 'com.github.goodforgod:java-etherscan-api:1.0.2'
22+
compile 'com.github.goodforgod:java-etherscan-api:1.1.0'
2523
}
2624
```
2725

‎build.gradle‎

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
plugins {
2+
id'jacoco'
3+
id'java-library'
4+
id'maven-publish'
5+
6+
id'org.sonarqube' version'3.0'
7+
id'com.diffplug.gradle.spotless' version'4.4.0'
8+
}
9+
10+
repositories {
11+
mavenLocal()
12+
mavenCentral()
13+
jcenter()
14+
}
15+
16+
group= groupId
17+
version= artifactVersion
18+
19+
sourceCompatibility=1.8
20+
targetCompatibility=1.8
21+
22+
spotless {
23+
java {
24+
encoding'UTF-8'
25+
removeUnusedImports()
26+
eclipse().configFile"${projectDir}/config/codestyle.xml"
27+
}
28+
}
29+
30+
sonarqube {
31+
properties {
32+
property'sonar.host.url','https://sonarcloud.io'
33+
property'sonar.organization','goodforgod'
34+
property'sonar.projectKey','GoodforGod_java-etherscan-api'
35+
}
36+
}
37+
38+
dependencies {
39+
implementation'org.jetbrains:annotations:20.1.0'
40+
implementation'com.google.code.gson:gson:2.8.6'
41+
42+
testImplementation'junit:junit:4.13.1'
43+
}
44+
45+
test {
46+
useJUnit()
47+
testLogging {
48+
events"passed","skipped","failed"
49+
exceptionFormat"full"
50+
}
51+
}
52+
53+
tasks.withType(JavaCompile) {
54+
options.encoding='UTF-8'
55+
options.incremental=true
56+
options.fork=true
57+
}
58+
59+
tasks.withType(Test) {
60+
reports.html.enabled=false
61+
reports.junitXml.enabled=false
62+
}
63+
64+
java {
65+
withJavadocJar()
66+
withSourcesJar()
67+
}
68+
69+
publishing {
70+
publications {
71+
mavenJava(MavenPublication) {
72+
from components.java
73+
74+
pom {
75+
name='Java Etherscan API'
76+
url='https://github.com/GoodforGod/java-etherscan-api'
77+
description='Library is a wrapper for EtherScan API.'
78+
79+
license {
80+
name='MIT License'
81+
url='https://github.com/GoodforGod/java-etherscan-api/blob/master/LICENSE'
82+
distribution='repo'
83+
}
84+
85+
developer {
86+
id='GoodforGod'
87+
name='Anton Kurako'
88+
email='goodforgod.dev@gmail.com'
89+
url='https://github.com/GoodforGod'
90+
}
91+
92+
scm {
93+
connection='scm:git:git://github.com/GoodforGod/java-etherscan-api.git'
94+
developerConnection='scm:git:ssh://GoodforGod/java-etherscan-api.git'
95+
url='https://github.com/GoodforGod/java-etherscan-api/tree/master'
96+
}
97+
}
98+
}
99+
}
100+
repositories {
101+
maven {
102+
def releasesRepoUrl="https://oss.sonatype.org/service/local/staging/deploy/maven2"
103+
def snapshotsRepoUrl="https://oss.sonatype.org/content/repositories/snapshots/"
104+
url= version.endsWith('SNAPSHOT')? snapshotsRepoUrl: releasesRepoUrl
105+
credentials {
106+
usernameSystem.getenv("OSS_USERNAME")
107+
passwordSystem.getenv("OSS_PASSWORD")
108+
}
109+
}
110+
}
111+
}
112+
113+
check.dependsOn jacocoTestReport
114+
jacocoTestReport {
115+
reports {
116+
xml.enabledtrue
117+
html.destination file("${buildDir}/jacocoHtml")
118+
}
119+
}
120+
121+
if (project.hasProperty("signing.keyId")) {
122+
applyplugin:'signing'
123+
signing {
124+
sign publishing.publications.mavenJava
125+
}
126+
}
127+
128+
javadoc {
129+
options.encoding="UTF-8"
130+
if (JavaVersion.current().isJava9Compatible()) {
131+
options.addBooleanOption('html5',true)
132+
}
133+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp