Skip to content

Commit 69c9b4c

Browse files
benjaminkomenBenjamin Komen
andauthored
Release new version (#31)
* Fix logging file. * Fix bug and fix unit tests. * Exception for Demon Goblin loot. * Also exception for Dawnport creatures. * Fix correctly comparing numbers. * New City and SpellId. * Upgrading to Java 14 * Refactoring logging annotation and more. * Support gradle (#30) Co-authored-by: Benjamin Komen <benjamin.komen@duxxie.nl>
1 parent cfcbb7a commit 69c9b4c

31 files changed

Lines changed: 641 additions & 717 deletions

.gitignore

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
*.class
22

3-
# Mobile Tools for Java (J2ME)
4-
.mtj.tmp/
5-
63
# Package Files #
74
*.jar
85
*.war
@@ -14,9 +11,9 @@ hs_err_pid*
1411
*.iml
1512
.idea/
1613
*.properties
17-
target
18-
!maven-wrapper.properties
19-
!maven-wrapper.jar
20-
!system.properties
14+
target/
15+
build/
2116
!src/main/resources/log4j.properties
22-
src/main/resources/temp
17+
src/main/resources/temp
18+
19+
.gradle/

.mvn/wrapper/maven-wrapper.jar

-46.5 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

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

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
language: java
22

33
jdk:
4-
- openjdk13
5-
4+
- openjdk14
65

76
addons:
87
sonarcloud:
98
organization: "benjaminkomen-github"
109

10+
before_cache:
11+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
12+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
13+
1114
cache:
1215
directories:
1316
- '$HOME/.m2/repository'
1417
- '$HOME/.sonar/cache'
18+
- '$HOME/.gradle/'
19+
- '.gradle'
1520

1621
script:
17-
- ./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
22+
# - ./gradlew clean build sonarqube ## FIXME enable when the java/util/jar/Pack200 bug has been fixed
23+
- ./gradlew clean build

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Benjamin Komen
3+
Copyright (c) 2020 Benjamin Komen
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
# TibiaWikiBot
66

7-
TibiaWikiBot is a MediaWiki bot which can be run in IDE's such as Eclipse or IntelliJ. It has two main usecases:
8-
- FixCreatures;
9-
- FixItems.
7+
TibiaWikiBot is a MediaWiki bot which can be run in IDE's such as Eclipse or IntelliJ. It has these main usecases:
8+
- FixCreatures
9+
- FixItems
10+
- FixLootStatistics
1011

1112
These are used to add missing links to creatures on item pages and missing links to items on creature pages
1213
on [TibiaWiki](https://tibia.fandom.com), a wiki about the game [Tibia](https://www.tibia.com).

build.gradle

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
plugins {
2+
id 'java'
3+
id 'jacoco'
4+
id "org.sonarqube" version "2.8"
5+
}
6+
7+
group = 'com.wikia.tibia'
8+
version = '1.1.0'
9+
description = 'TibiaWikiBot'
10+
11+
repositories {
12+
mavenLocal()
13+
mavenCentral()
14+
}
15+
16+
dependencies {
17+
implementation 'org.slf4j:slf4j-api:1.8.0-beta4'
18+
implementation 'org.slf4j:slf4j-simple:1.8.0-beta4'
19+
implementation 'org.json:json:20190722'
20+
implementation 'one.util:streamex:0.7.2'
21+
implementation 'commons-io:commons-io:2.6'
22+
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.0'
23+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.0'
24+
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.11.0'
25+
implementation 'org.skyscreamer:jsonassert:1.5.0'
26+
implementation 'com.google.guava:guava:29.0-jre'
27+
implementation 'io.vavr:vavr:0.10.2'
28+
testImplementation 'junit:junit:4.13'
29+
testImplementation 'org.mockito:mockito-core:3.3.3'
30+
testImplementation 'org.hamcrest:hamcrest-core:2.2'
31+
testImplementation 'org.hamcrest:hamcrest-library:2.2'
32+
annotationProcessor 'org.projectlombok:lombok:1.18.12'
33+
compileOnly 'org.projectlombok:lombok:1.18.12'
34+
}
35+
36+
sonarqube {
37+
properties {
38+
property "sonar.projectName", "TibiaWikiBot"
39+
property "sonar.projectKey", "com.onlaika:TibiaWikiBot"
40+
}
41+
}
42+
43+
sourceCompatibility = 14
44+
45+
tasks.withType(JavaCompile) {
46+
options.encoding = 'UTF-8'
47+
options.compilerArgs += '--enable-preview'
48+
}
49+
50+
tasks.withType(Test) {
51+
jvmArgs += "--enable-preview"
52+
}

gradle/wrapper/gradle-wrapper.jar

57.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri May 01 17:07:54 CEST 2020
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
3+
distributionBase=GRADLE_USER_HOME
4+
distributionPath=wrapper/dists
5+
zipStorePath=wrapper/dists
6+
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 183 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)