Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
HARMAND Frederic
pcd2k19-gradle-bootstrap
Commits
a1afeeaa
Commit
a1afeeaa
authored
5 years ago
by
HARMAND Frederic
Browse files
Options
Download
Email Patches
Plain Diff
Merci Ubuntu 19.10
parent
76cd3cad
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
177 additions
and
19 deletions
+177
-19
.gitignore
.gitignore
+23
-15
README.md
README.md
+5
-4
build.gradle
build.gradle
+48
-0
settings.gradle
settings.gradle
+10
-0
src/main/java/pcd/App.java
src/main/java/pcd/App.java
+14
-0
src/main/java/pcd/Student.java
src/main/java/pcd/Student.java
+37
-0
src/test/java/pcd/StudentTest.java
src/test/java/pcd/StudentTest.java
+40
-0
No files found.
.gitignore
View file @
a1afeeaa
# Created by https://www.gitignore.io/api/gradle
# Android built artifacts
*.apk
*.ap_
*.dex
### Gradle ###
.gradle
/build/
# Java build artifacts class files
*.class
# Ignore Gradle GUI config
gradle-app.setting
# other generated files
bin/
gen/
build/
#
Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored
)
!gradle-wrapper.jar
#
local configuration file (for Android sdk path, etc
)
local.properties
#
Cache of project
.
gradletasknamecach
e
#
OSX files
.
DS_Stor
e
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
# Eclipse project files
.classpath
.project
### Gradle Patch ###
**/build/
# Android Studio
*.iml
.idea
.gradle
# End of https://www.gitignore.io/api/gradle
#NDK
obj/
This diff is collapsed.
Click to expand it.
README.md
View file @
a1afeeaa
# Gradle Bootstrap
The goal of this project is to allow users to easily bootstrap their gradle project without requiring they have locally their own gradle installation.
This project only contains the gradle wrapper (and git ignore rules related to gradle).
It was been generated using
``gradle wrapper``
com
m
an
d.
HARMAND Frédéric
frederic.harmand@tele
com
n
an
cy.eu
The goal of this project is to allow users to easily bootstrap their gradle project without requiring they have locally their own gradle installation.
Remerciements spéciaux à la mise à niveau d'Ubuntu 19.10 qui a fait planter la première version de ce projet.
Que mes commits reposent en paix.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build.gradle
0 → 100644
View file @
a1afeeaa
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.6.2/userguide/tutorial_java_projects.html
*/
plugins
{
// Apply the java plugin to add support for Java
id
'java'
// Apply the application plugin to add support for building a CLI application
id
'application'
}
repositories
{
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter
()
}
dependencies
{
// This dependency is used by the application.
implementation
'com.google.guava:guava:28.0-jre'
// Use JUnit test framework
testImplementation
'junit:junit:4.12'
testRuntimeOnly
'org.junit.jupiter:junit-jupiter-engine:5.4.0'
}
application
{
// Define the main class for the application
mainClassName
=
'eu.telecomnancy.App'
}
test
{
useJUnitPlatform
()
testLogging
{
events
"passed"
,
"skipped"
,
"failed"
,
"standardError"
//, "standardOut"
}
}
jar
{
manifest
{
attributes
"Main-Class"
:
"eu.telecomnancy.App"
}
}
This diff is collapsed.
Click to expand it.
settings.gradle
0 → 100644
View file @
a1afeeaa
/*
* This file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user manual at https://docs.gradle.org/5.6.2/userguide/multi_project_builds.html
*/
rootProject
.
name
=
'pcd'
This diff is collapsed.
Click to expand it.
src/main/java/pcd/App.java
0 → 100644
View file @
a1afeeaa
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package
eu.telecomnancy
;
public
class
App
{
public
static
void
main
(
String
[]
args
)
{
Student
s1
=
new
Student
(
"Niko"
,
0
);
Student
s2
=
new
Student
(
"Luka"
,
1
);
System
.
out
.
println
(
s1
.
toString
());
System
.
out
.
println
(
s2
.
toString
());
}
}
This diff is collapsed.
Click to expand it.
src/main/java/pcd/Student.java
0 → 100644
View file @
a1afeeaa
package
eu.telecomnancy
;
public
class
Student
{
private
String
name
;
private
int
id
;
public
Student
(
String
n
,
int
i
){
this
.
name
=
n
;
this
.
id
=
i
;
}
public
String
getName
(){
return
this
.
name
;
}
public
int
getId
(){
return
this
.
id
;
}
public
void
setName
(
String
n
){
this
.
name
=
n
;
}
public
void
setId
(
int
i
){
this
.
id
=
i
;
}
public
String
toString
(){
return
(
"Student: "
+
this
.
name
+
" ; "
+
this
.
id
);
}
public
boolean
equals
(
Student
s
){
return
(
this
.
name
==
s
.
getName
()
&&
this
.
id
==
s
.
getId
());
}
}
This diff is collapsed.
Click to expand it.
src/test/java/pcd/StudentTest.java
0 → 100644
View file @
a1afeeaa
package
eu.telecomnancy
;
import
eu.telecomnancy.*
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
org.junit.Test
;
public
class
StudentTest
{
@Test
public
void
testGet
(){
Student
s1
=
new
Student
(
"Niko"
,
0
);
assertEquals
(
"Niko"
,
s1
.
getName
());
assertEquals
(
0
,
s1
.
getId
());
}
@Test
public
void
testSet
(){
Student
s1
=
new
Student
(
"Niko"
,
0
);
s1
.
setName
(
"Luka"
);
s1
.
setId
(
1
);
assertEquals
(
"Luka"
,
s1
.
getName
());
assertEquals
(
1
,
s1
.
getId
());
}
@Test
public
void
testToString
(){
Student
s1
=
new
Student
(
"Niko"
,
0
);
assertEquals
(
"Student: Niko ; 0"
,
s1
.
toString
());
}
@Test
public
void
testEquals
(){
Student
s1
=
new
Student
(
"Niko"
,
0
);
Student
s2
=
new
Student
(
"Luka"
,
1
);
assertEquals
(
false
,
s1
.
equals
(
s2
));
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment