Skip to content

Commit

Permalink
New modules
Browse files Browse the repository at this point in the history
  • Loading branch information
IRus committed Mar 12, 2021
1 parent a97b082 commit 67125ac
Show file tree
Hide file tree
Showing 41 changed files with 1,665 additions and 62 deletions.
2 changes: 0 additions & 2 deletions baseline/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ repositories {

dependencies {
implementation(project(":common"))

implementation(kotlin("stdlib-jdk8"))
}
2 changes: 1 addition & 1 deletion common-deep/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ repositories {
}

dependencies {
implementation(kotlin("stdlib-jdk8"))
api(kotlin("stdlib-jdk8"))
}
2 changes: 1 addition & 1 deletion common-deep/src/test/kotlin/GenerateCayenne.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fun generateProvider(it: Int) {
Files.write(
Paths.get("./cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider$it.java"),
"""
package org.objectstyle.cayenne;
package io.heapy.cayenne;
import io.heapy.sample.common2.*;
import org.apache.cayenne.di.DIRuntimeException;
Expand Down
10 changes: 10 additions & 0 deletions common-deep/src/test/kotlin/GenerateSpringXml.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fun main() {
(1..101).forEach {
println("""
<bean id="service$it" class="io.heapy.sample.common2.DefaultService$it">
<constructor-arg ref="service${it + 1}"/>
</bean>
""".trimIndent())
}
}
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ repositories {
}

dependencies {
implementation(kotlin("stdlib-jdk8"))
api(kotlin("stdlib-jdk8"))
}
2 changes: 1 addition & 1 deletion jvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

application {
mainClass.set("org.objectstyle.jvm.MainKt")
mainClass.set("io.heapy.jvm.MainKt")
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
Expand Down
3 changes: 3 additions & 0 deletions jvm/src/main/kotlin/io/heapy/jvm/Main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package io.heapy.jvm

fun main() {}
3 changes: 0 additions & 3 deletions jvm/src/main/kotlin/org/objectstyle/jvm/Main.kt

This file was deleted.

2 changes: 1 addition & 1 deletion kodein/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

application {
mainClass.set("org.objectstyle.kodein.MainKt")
mainClass.set("io.heapy.kodein.MainKt")
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package org.objectstyle.kodein
package io.heapy.kodein

import org.kodein.di.DI
import org.kodein.di.bind
import org.kodein.di.direct
import org.kodein.di.instance
import org.kodein.di.singleton
import org.objectstyle.di.service.Service
import org.objectstyle.di.service.ServiceImpl
import org.objectstyle.di.service.SubService
import org.objectstyle.di.service.SubServiceImpl
import io.heapy.di.service.Service
import io.heapy.di.service.ServiceImpl
import io.heapy.di.service.SubService
import io.heapy.di.service.SubServiceImpl

fun main() {
val s = DI {
Expand Down
2 changes: 1 addition & 1 deletion koin-reflect/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

application {
mainClass.set("org.objectstyle.koin.MainKt")
mainClass.set("io.heapy.koin.MainKt")
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.objectstyle.koin
package io.heapy.koin

import org.koin.dsl.koinApplication
import org.koin.dsl.module
import org.koin.experimental.builder.singleBy
import org.objectstyle.di.service.Service
import org.objectstyle.di.service.ServiceImpl
import org.objectstyle.di.service.SubService
import org.objectstyle.di.service.SubServiceImpl
import io.heapy.di.service.Service
import io.heapy.di.service.ServiceImpl
import io.heapy.di.service.SubService
import io.heapy.di.service.SubServiceImpl

fun main() {
val s = koinApplication {
Expand Down
2 changes: 1 addition & 1 deletion koin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

application {
mainClass.set("org.objectstyle.koin.MainKt")
mainClass.set("io.heapy.koin.MainKt")
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.objectstyle.koin
package io.heapy.koin

import org.koin.dsl.koinApplication
import org.koin.dsl.module
import org.objectstyle.di.service.Service
import org.objectstyle.di.service.ServiceImpl
import org.objectstyle.di.service.SubService
import org.objectstyle.di.service.SubServiceImpl
import io.heapy.di.service.Service
import io.heapy.di.service.ServiceImpl
import io.heapy.di.service.SubService
import io.heapy.di.service.SubServiceImpl

fun main() {
val s = koinApplication {
Expand Down
2 changes: 1 addition & 1 deletion komodo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

application {
mainClass.set("org.objectstyle.komodo.MainKt")
mainClass.set("io.heapy.komodo.MainKt")
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.objectstyle.komodo
package io.heapy.komodo

import io.heapy.komodo.di.createContextAndGet
import io.heapy.komodo.di.module
import io.heapy.komodo.di.provide
import io.heapy.komodo.di.type
import org.objectstyle.di.service.Service
import org.objectstyle.di.service.ServiceImpl
import org.objectstyle.di.service.SubService
import org.objectstyle.di.service.SubServiceImpl
import io.heapy.di.service.Service
import io.heapy.di.service.ServiceImpl
import io.heapy.di.service.SubService
import io.heapy.di.service.SubServiceImpl

suspend fun main() {
val s = createContextAndGet(type<Service>(), mainModule)
Expand Down
2 changes: 1 addition & 1 deletion owb-deep/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

application {
mainClass.set("org.objectstyle.owb.Main")
mainClass.set("io.heapy.owb.Main")
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.objectstyle.owb;
package io.heapy.owb;


import io.heapy.sample.common2.Service;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.objectstyle.owb;
package io.heapy.owb;

import io.heapy.sample.common2.*;

Expand Down
2 changes: 1 addition & 1 deletion owb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

application {
mainClass.set("org.objectstyle.owb.Main")
mainClass.set("io.heapy.owb.Main")
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.objectstyle.owb;
package io.heapy.owb;


import javax.enterprise.inject.se.SeContainer;
import javax.enterprise.inject.se.SeContainerInitializer;
import javax.enterprise.inject.spi.CDI;

import org.objectstyle.di.service.Service;
import io.heapy.di.service.Service;

public class Main {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.objectstyle.owb;
package io.heapy.owb;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;

import org.objectstyle.di.service.Service;
import org.objectstyle.di.service.ServiceImpl;
import org.objectstyle.di.service.SubService;
import org.objectstyle.di.service.SubServiceImpl;
import io.heapy.di.service.Service;
import io.heapy.di.service.ServiceImpl;
import io.heapy.di.service.SubService;
import io.heapy.di.service.SubServiceImpl;

@ApplicationScoped
public class MainModule {
Expand Down
40 changes: 40 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,27 +1,67 @@
include("common")
include("common-deep")

include("jvm")

include("baseline")
include("baseline-deep")

include("kodein")
include("kodein-deep")

include("koin")
include("koin-deep")

include("koin-reflect")
include("koin-reflect-deep")

include("komodo")
include("komodo-deep")

include("bootique")
include("bootique-deep")

include("dagger")
include("dagger-deep")

include("guice")
include("guice-deep")

include("cayennedi")
include("cayennedi-deep")

include("spring")
include("spring-deep")

include("springboot")
include("springboot-deep")

include("owb")
include("owb-deep")

include("springboot-index")
include("springboot-index-deep")

include("spring-index")
include("spring-index-deep")

include("spring-fu")
include("spring-fu-deep")

include("spring-xml")
include("spring-xml-deep")

include("spring-scan")
include("spring-scan-deep")

include("quarkus")
include("quarkus-deep")

include("micronaut")
include("micronaut-deep")

include("helidon")
include("helidon-deep")

include("kotlin-lazy")
include("kotlin-lazy-deep")
2 changes: 1 addition & 1 deletion spring-deep/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

application {
mainClass.set("org.objectstyle.spring.Main")
mainClass.set("io.heapy.spring.Main")
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.objectstyle.spring;
package io.heapy.spring;

import io.heapy.sample.common2.*;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
Expand Down
19 changes: 19 additions & 0 deletions spring-index-deep/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
plugins {
java
application
}

application {
mainClass.set("io.heapy.spring.Main")
}

repositories {
mavenCentral()
}

dependencies {
implementation(project(":common-deep"))

implementation("org.springframework:spring-context:5.3.4")
annotationProcessor("org.springframework:spring-context-indexer:5.3.4")
}
Loading

0 comments on commit 67125ac

Please sign in to comment.