Refactor/unify modules files structure
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
package io.smnp.ext
|
||||
|
||||
import io.smnp.ext.function.ModuloFunction
|
||||
import io.smnp.ext.function.RandomFunction
|
||||
import io.smnp.ext.function.RangeFunction
|
||||
import org.pf4j.Extension
|
||||
|
||||
@Extension
|
||||
class MathModule : HybridModuleProvider("smnp.math") {
|
||||
override fun functions() = listOf(ModuloFunction(), RangeFunction(), RandomFunction())
|
||||
override fun dependencies() = listOf("smnp.lang", "smnp.collection")
|
||||
}
|
||||
16
modules/math/src/main/kotlin/io/smnp/ext/math/MathModule.kt
Normal file
16
modules/math/src/main/kotlin/io/smnp/ext/math/MathModule.kt
Normal file
@@ -0,0 +1,16 @@
|
||||
package io.smnp.ext.math
|
||||
|
||||
import io.smnp.ext.provider.HybridModuleProvider
|
||||
import io.smnp.ext.math.function.ModuloFunction
|
||||
import io.smnp.ext.math.function.RandomFunction
|
||||
import io.smnp.ext.math.function.RangeFunction
|
||||
import org.pf4j.Extension
|
||||
|
||||
@Extension
|
||||
class MathModule : HybridModuleProvider("smnp.math") {
|
||||
override fun functions() = listOf(
|
||||
ModuloFunction(), RangeFunction(),
|
||||
RandomFunction()
|
||||
)
|
||||
override fun dependencies() = listOf("smnp.lang", "smnp.collection")
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.smnp.ext.function
|
||||
package io.smnp.ext.math.function
|
||||
|
||||
import io.smnp.callable.function.Function
|
||||
import io.smnp.callable.function.FunctionDefinitionTool
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.smnp.ext.function
|
||||
package io.smnp.ext.math.function
|
||||
|
||||
import io.smnp.callable.function.Function
|
||||
import io.smnp.callable.function.FunctionDefinitionTool
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.smnp.ext.function
|
||||
package io.smnp.ext.math.function
|
||||
|
||||
import io.smnp.callable.function.Function
|
||||
import io.smnp.callable.function.FunctionDefinitionTool
|
||||
Reference in New Issue
Block a user