Commit 5e261de5 authored by NicolaiO's avatar NicolaiO 🐼 Committed by TIGERs GitLab
Browse files

Gradle upgrade and autoRef sync fixes

See merge request main/Sumatra!1325

sumatra-commit: 614f50850034a4b8fa22c36962c5e830a0dde0bb
parent 1b395635
Pipeline #8595 failed with stage
in 1 minute and 24 seconds
/*
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id 'groovy-gradle-plugin'
}
repositories {
gradlePluginPortal() // so that external plugins can be resolved in dependencies section
}
dependencies {
implementation 'gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.15'
}
\ No newline at end of file
/*
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id 'java'
id 'jacoco'
id 'ca.cutterslade.analyze'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
maven {
url = 'https://nexus.tigers-mannheim.de/content/groups/public/'
}
jcenter()
maven {
url = 'https://jitpack.io/'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
exclude '**/*IntegrationTest.class'
}
jacoco {
toolVersion = "0.8.5"
}
jacocoTestReport {
reports {
xml.enabled = true
csv.enabled = false
html.enabled = false
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['**/proto/**/*'])
}))
}
dependsOn(test)
}
dependencies {
annotationProcessor "org.projectlombok:lombok:1.18.12"
compileOnly "org.projectlombok:lombok:1.18.12"
permitUnusedDeclared "org.projectlombok:lombok:1.18.12"
}
\ No newline at end of file
/*
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id 'com.google.protobuf'
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.14.0'
}
// https://github.com/google/protobuf/issues/2054
generateProtoTasks {
all().each { task ->
task.doLast {
ant.replaceregexp(
match: '@java.lang.Deprecated|@deprecated',
replace: '',
flags: 'g',
byline: true
) {
fileset(
dir: "${protobuf.generatedFilesBaseDir}/main/java")
}
}
}
}
}
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
package edu.tigers.sumatra.bot;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* Dribbler state.
*/
@RequiredArgsConstructor
@Getter
public enum EDribblerState
{
COLD(0),
WARM(1),
HOT(2),
OVERHEATED(3),
;
private final int id;
/**
* Convert an id to an enum.
*
* @param id
* @return enum
*/
public static EDribblerState getDribblerStateConstant(final int id)
{
for (EDribblerState s : values())
{
if (s.getId() == id)
{
return s;
}
}
return COLD;
}
}
/*
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
package edu.tigers.sumatra.bot;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* Dribbler state.
*/
@RequiredArgsConstructor
@Getter
public enum EDribblerState
{
COLD(0),
WARM(1),
HOT(2),
OVERHEATED(3),
;
private final int id;
/**
* Convert an id to an enum.
*
* @param id
* @return enum
*/
public static EDribblerState getDribblerStateConstant(final int id)
{
for (EDribblerState s : values())
{
if (s.getId() == id)
{
return s;
}
}
return COLD;
}
}
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
......@@ -3,8 +3,9 @@
*/
plugins {
id "java-library"
id "com.google.protobuf"
id 'sumatra.java-conventions'
id 'java-library'
id 'sumatra.protobuf-conventions'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id "com.google.protobuf"
id 'sumatra.java-conventions'
id 'java-library'
id 'sumatra.protobuf-conventions'
id "de.undercouch.download" version "4.0.4"
}
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id "com.google.protobuf"
id 'sumatra.java-conventions'
id 'java-library'
id 'sumatra.protobuf-conventions'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "java-library"
id 'sumatra.java-conventions'
id 'java-library'
}
dependencies {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment