mirror of
https://github.com/tribufu/tribufu-java
synced 2026-06-01 09:42:37 +00:00
Remove examples
This commit is contained in:
parent
0db8d03dcc
commit
ca1aaad1c1
3 changed files with 3 additions and 48 deletions
|
|
@ -1,21 +0,0 @@
|
||||||
plugins {
|
|
||||||
id 'application'
|
|
||||||
}
|
|
||||||
|
|
||||||
version = "0.0.4"
|
|
||||||
archivesBaseName = "TribufuExample"
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
maven { url = "https://mvn.tribufu.com/releases" }
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':lib')
|
|
||||||
implementation 'com.google.guava:guava:30.0-jre'
|
|
||||||
testImplementation 'junit:junit:4.13.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
application {
|
|
||||||
mainClass = 'com.tribufu.example.ExampleApp'
|
|
||||||
}
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
// Copyright (c) Tribufu. All Rights Reserved.
|
|
||||||
|
|
||||||
package com.tribufu.example;
|
|
||||||
|
|
||||||
import com.tribufu.TribufuApi;
|
|
||||||
|
|
||||||
public class ExampleApp {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
var api = new TribufuApi();
|
|
||||||
|
|
||||||
var games = api.getGames();
|
|
||||||
System.out.println("\n---- GAMES ----");
|
|
||||||
for (var game : games) {
|
|
||||||
System.out.println(game.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
var servers = api.getServers();
|
|
||||||
System.out.println("\n---- SERVERS ----");
|
|
||||||
for (var server : servers) {
|
|
||||||
System.out.println(server.name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.4.0'
|
id "org.gradle.toolchains.foojay-resolver-convention" version "0.4.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = 'TribufuJvm'
|
rootProject.name = "TribufuJvm"
|
||||||
include('lib')
|
include("lib")
|
||||||
include('examples')
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue