Skip to content

Commit

Permalink
Add JetBrains annotations; move versions to gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed May 13, 2023
1 parent 4c116a6 commit a28de9c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ group "net.fabricmc"
archivesBaseName = "mapping-io"

def ENV = System.getenv()
version = "0.4.2"

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
Expand All @@ -26,15 +25,16 @@ tasks.withType(JavaCompile).configureEach {

checkstyle {
configFile = project.file("checkstyle.xml")
toolVersion = "8.31"
toolVersion = project.checkstyle_tool_version
}

repositories {
mavenCentral()
}

dependencies {
implementation "org.ow2.asm:asm:9.5"
implementation "org.ow2.asm:asm:${project.asm_version}"
implementation "org.jetbrains:annotations:${project.jetbrains_annotations_version}"
}

spotless {
Expand Down
10 changes: 10 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Gradle Properties
org.gradle.jvmargs = -Xmx2G

# Project properties
version = 0.4.2

# Dependencies
asm_version = 9.5
jetbrains_annotations_version = 24.0.1
checkstyle_tool_version = 8.31
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
import java.io.Reader;
import java.util.Arrays;

import org.jetbrains.annotations.ApiStatus;

import net.fabricmc.mappingio.format.tiny.Tiny2Util;

@ApiStatus.Internal
public final class ColumnFileReader implements Closeable {
public ColumnFileReader(Reader reader, char columnSeparator) {
this.reader = reader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import java.io.IOException;
import java.io.Writer;

import org.jetbrains.annotations.ApiStatus;

@ApiStatus.Internal
public final class Tiny2Util {
public static boolean needEscape(String s) {
for (int pos = 0, len = s.length(); pos < len; pos++) {
Expand Down

0 comments on commit a28de9c

Please sign in to comment.