Skip to content

Commit d266144

Browse files
committed
Initial commit
0 parents  commit d266144

File tree

7 files changed

+510
-0
lines changed

7 files changed

+510
-0
lines changed

.classpath

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="bin/main" path="src/main/java">
4+
<attributes>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="bin/main" path="src/main/resources">
10+
<attributes>
11+
<attribute name="gradle_scope" value="main"/>
12+
<attribute name="gradle_used_by_scope" value="main,test"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="src" output="bin/test" path="src/test/java">
16+
<attributes>
17+
<attribute name="gradle_scope" value="test"/>
18+
<attribute name="gradle_used_by_scope" value="test"/>
19+
</attributes>
20+
</classpathentry>
21+
<classpathentry kind="src" output="bin/test" path="src/test/resources">
22+
<attributes>
23+
<attribute name="gradle_scope" value="test"/>
24+
<attribute name="gradle_used_by_scope" value="test"/>
25+
</attributes>
26+
</classpathentry>
27+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7/"/>
28+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
29+
<classpathentry kind="output" path="bin/default"/>
30+
</classpath>

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.gradle
2+
/bin
3+
/build

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>JavaSMTPService</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
connection.project.dir=
2+
eclipse.preferences.version=1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
#Thu Jun 20 18:47:21 CDT 2019
3+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
5+
eclipse.preferences.version=1
6+
org.eclipse.jdt.core.compiler.source=1.7
7+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
8+
org.eclipse.jdt.core.compiler.compliance=1.7

build.gradle

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apply plugin: 'java'
2+
apply plugin: 'eclipse'
3+
apply plugin: 'application'
4+
5+
mainClassName = 'com.bahamut1797.smtp.Main'
6+
// JDK 7
7+
sourceCompatibility = 1.7
8+
targetCompatibility = 1.7
9+
10+
repositories {
11+
mavenLocal()
12+
mavenCentral()
13+
maven {
14+
url "http://maven.vaadin.com/vaadin-addons"
15+
url "https://mvnrepository.com/artifact/javax.mail/javax.mail-api"
16+
}
17+
}
18+
19+
dependencies {
20+
// https://mvnrepository.com/artifact/com.sun.mail/javax.mail
21+
compile group: 'com.sun.mail', name: 'javax.mail', version: '1.6.2'
22+
}
23+
24+
task "create-dirs" {
25+
doLast{
26+
sourceSets*.java.srcDirs*.each { it.mkdirs() }
27+
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
28+
}
29+
}
30+
31+
task fatJar(type: Jar) {
32+
manifest {
33+
attributes 'Implementation-Title': 'Java SMTP Service',
34+
'Implementation-Version': '1.0',
35+
'Main-Class': 'com.bahamut1797.smtp.Main'
36+
}
37+
baseName = project.name + '-all'
38+
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
39+
with jar
40+
}

0 commit comments

Comments
 (0)