Skip to content

Commit 2e4196d

Browse files
committed
migration: Maven -> Gradle; add license headers
1 parent 814ed7a commit 2e4196d

13 files changed

Lines changed: 195 additions & 106 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
.idea/
22
*.iml
3+
out/
34
target/
5+
build/
6+
.gradle/
7+
gradle/
8+
gradlew
9+
gradlew.bat

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apply plugin: 'java'
2+
3+
group = 'duchampdev'
4+
version = '1.2'
5+
6+
description = """"""
7+
8+
sourceCompatibility = 8
9+
targetCompatibility = 8
10+
11+
12+
13+
jar {
14+
from "LICENSE"
15+
manifest {
16+
attributes 'Main-Class': 'duchampdev.sft.Main'
17+
}
18+
}

licenseheader.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SortedFileTransfer
2+
Copyright (C) 2018-today duchampdev (Benedikt I.)
3+
contact: duchampdev@outlook.com
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <http://www.gnu.org/licenses/>.

pom.xml

Lines changed: 0 additions & 61 deletions
This file was deleted.

res/UIStrings.properties

Lines changed: 0 additions & 15 deletions
This file was deleted.

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'SortedFileTransfer'

src/duchampdev/sft/Main.java

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
* SortedFileTransfer
3+
* Copyright (C) 2018-today duchampdev (Benedikt I.)
4+
* contact: duchampdev@outlook.com
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
package duchampdev.sft;
20+
21+
import javafx.application.Application;
22+
import javafx.fxml.FXMLLoader;
23+
import javafx.scene.Parent;
24+
import javafx.scene.Scene;
25+
import javafx.stage.Stage;
26+
27+
import java.util.ResourceBundle;
28+
29+
/**
30+
* @author duchampdev
31+
*/
32+
public class Main extends Application {
33+
34+
@Override
35+
public void start(Stage primaryStage) throws Exception{
36+
ResourceBundle uistrings = ResourceBundle.getBundle("UIStrings");
37+
Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("filetransfer.fxml"), uistrings);
38+
primaryStage.setTitle("SortedFileTransfer");
39+
primaryStage.setScene(new Scene(root, 460, 250));
40+
primaryStage.show();
41+
}
42+
43+
44+
public static void main(String[] args) {
45+
launch(args);
46+
}
47+
}

src/duchampdev/sft/fxml/FileTransferController.java renamed to src/main/java/duchampdev/sft/fxml/FileTransferController.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/**
2+
* SortedFileTransfer
3+
* Copyright (C) 2018-today duchampdev (Benedikt I.)
4+
* contact: duchampdev@outlook.com
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/
119
package duchampdev.sft.fxml;
220

321
import duchampdev.sft.util.FileUtils;

src/duchampdev/sft/util/FileUtils.java renamed to src/main/java/duchampdev/sft/util/FileUtils.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/**
2+
* SortedFileTransfer
3+
* Copyright (C) 2018-today duchampdev (Benedikt I.)
4+
* contact: duchampdev@outlook.com
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/
119
package duchampdev.sft.util;
220

321
import java.io.File;

0 commit comments

Comments
 (0)