Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 92a3263

Browse files
committed
"Add java bootstrap"
0 parents  commit 92a3263

File tree

11 files changed

+381
-0
lines changed

11 files changed

+381
-0
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Gradle
2+
.gradle
3+
build/
4+
5+
# Ignore Gradle GUI config
6+
gradle-app.setting
7+

β€Ž.travis.ymlβ€Ž

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
language: java
2+
3+
jdk:
4+
- openjdk8
5+
- openjdk11
6+
- oraclejdk11
7+
8+
os:
9+
- linux
10+
- osx
11+
12+
before_cache:
13+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
14+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
15+
16+
cache:
17+
directories:
18+
- $HOME/.gradle/caches/
19+
- $HOME/.gradle/wrapper/
20+
21+
# Run commands before TravisCI install step only in some cases
22+
# More info: https://docs.travis-ci.com/user/multi-os/#example-multi-os-build-matrix
23+
before_install:
24+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
25+
26+
# Override default install process on TravisCI
27+
# Avoid default `gradlew assemble` execution. Be explicit about it on the `script` section.
28+
# More info: https://github.com/travis-ci/travis-ci/issues/8667
29+
install: true
30+
31+
# Build pipeline
32+
# Compile before running the tests in order to easily check which task could be failing.
33+
script:
34+
- ./gradlew assemble --warning-mode all
35+
- ./gradlew check --warning-mode all

β€ŽREADME.mdβ€Ž

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Java Bootstrap (base / project skeleton)
2+
3+
## Introduction
4+
5+
This is a repository intended to serve as a starting point if you want to bootstrap a project in Java 8 with JUnit 5.2 and Gradle 4.6.
6+
7+
## How To Start
8+
9+
1. Install Java 8
10+
2. Clone this repository `git clone https://github.com/CodelyTV/java-bootstrap`.
11+
3. Run the tests with `./gradlew test`
12+
4. Start developing!

β€Žbitbucket-pipelines.ymlβ€Ž

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
image: java:8
2+
3+
options:
4+
max-time: 10
5+
6+
pipelines:
7+
default:
8+
- step:
9+
caches:
10+
- gradle
11+
script:
12+
- bash ./gradlew build

β€Žbuild.gradleβ€Ž

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apply plugin: 'java'
2+
3+
sourceCompatibility = 1.8
4+
5+
repositories {
6+
mavenCentral()
7+
}
8+
9+
dependencies {
10+
testCompile('org.junit.jupiter:junit-jupiter-api:5.2.0')
11+
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.2.0')
12+
}
13+
14+
test {
15+
useJUnitPlatform()
16+
17+
testLogging {
18+
events "passed", "skipped", "failed"
19+
}
20+
21+
reports {
22+
html.enabled = true
23+
}
24+
}
25+
26+
task wrapper(type: Wrapper) {
27+
description = 'Generates gradlew[.bat] scripts'
28+
gradleVersion = '4.6'
29+
}
53.1 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 Jun 01 07:06:45 CEST 2018
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip

β€Žgradlewβ€Ž

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

β€Žgradlew.batβ€Ž

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package tv.codely.java_bootstrap;
2+
3+
public class Greeter {
4+
5+
public String greet(String name) {
6+
return "Hello " + name;
7+
}
8+
9+
}

0 commit comments

Comments
Β (0)