-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Gradle, add komodo and baseline
- Loading branch information
Showing
34 changed files
with
564 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
*.iml | ||
.idea | ||
target | ||
dependency-reduced-pom.xml | ||
out | ||
build | ||
.gradle | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
plugins { | ||
kotlin("jvm").version("1.4.30-M1") | ||
application | ||
} | ||
|
||
application { | ||
mainClass.set("org.objectstyle.baseline.MainKt") | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
implementation(project(":common")) | ||
|
||
implementation(kotlin("stdlib-jdk8")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.objectstyle.baseline | ||
|
||
import org.objectstyle.di.service.ServiceImpl | ||
import org.objectstyle.di.service.SubServiceImpl | ||
|
||
fun main() { | ||
val s = ServiceImpl(SubServiceImpl()) | ||
|
||
println(s.doIt()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
plugins { | ||
java | ||
application | ||
} | ||
|
||
application { | ||
mainClass.set("org.objectstyle.bootique2.Main") | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
maven { | ||
url = uri("https://maven.objectstyle.org/nexus/content/repositories/bootique-snapshots/") | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":common")) | ||
|
||
implementation("io.bootique:bootique:2.0-SNAPSHOT") | ||
} |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
plugins { | ||
java | ||
application | ||
} | ||
|
||
application { | ||
mainClass.set("org.objectstyle.cayenne.Main") | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
implementation(project(":common")) | ||
|
||
implementation("org.apache.cayenne:cayenne-di:4.1.RC2") | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
plugins { | ||
kotlin("jvm").version("1.4.30-M1") | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib-jdk8")) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package org.objectstyle.di.service; | ||
package org.objectstyle.di.service | ||
|
||
|
||
public interface Service { | ||
|
||
String doIt(); | ||
interface Service { | ||
fun doIt(): String | ||
} |
17 changes: 6 additions & 11 deletions
17
common/src/main/java/org/objectstyle/di/service/ServiceImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
package org.objectstyle.di.service; | ||
package org.objectstyle.di.service | ||
|
||
public class ServiceImpl implements Service { | ||
|
||
private SubService subService; | ||
|
||
public ServiceImpl(SubService subService) { | ||
this.subService = subService; | ||
} | ||
|
||
public String doIt() { | ||
return "ServiceImpl_" + subService.doIt(); | ||
class ServiceImpl( | ||
private val subService: SubService | ||
) : Service { | ||
override fun doIt(): String { | ||
return "ServiceImpl_" + subService.doIt() | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
common/src/main/java/org/objectstyle/di/service/SubService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package org.objectstyle.di.service; | ||
package org.objectstyle.di.service | ||
|
||
public interface SubService { | ||
String doIt(); | ||
interface SubService { | ||
fun doIt(): String | ||
} |
9 changes: 4 additions & 5 deletions
9
common/src/main/java/org/objectstyle/di/service/SubServiceImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
package org.objectstyle.di.service; | ||
package org.objectstyle.di.service | ||
|
||
public class SubServiceImpl implements SubService { | ||
|
||
public String doIt() { | ||
return "SubServiceImpl"; | ||
class SubServiceImpl : SubService { | ||
override fun doIt(): String { | ||
return "SubServiceImpl" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
java | ||
application | ||
} | ||
|
||
application { | ||
mainClass.set("org.objectstyle.dagger.Main") | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
implementation(project(":common")) | ||
|
||
implementation("com.google.dagger:dagger:2.30.1") | ||
annotationProcessor("com.google.dagger:dagger-compiler:2.30.1") | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.