File tree Expand file tree Collapse file tree
main/kotlin/net/cloudopt/next/client
test/kotlin/net/cloudopt/next/client
cloudopt-next-jooq/src/main/kotlin/net/cloudopt/next/jooq Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ dependencies {
22 api " io.vertx:vertx-web:${ rootProject.property('vertx_version')} "
33 api " io.vertx:vertx-lang-kotlin:${ rootProject.property('vertx_version')} "
44 api " io.vertx:vertx-lang-kotlin-coroutines:${ rootProject.property('vertx_version')} "
5- implementation " io.netty:netty-all:4.1.56.Final"
5+ api " io.netty:netty-all:4.1.56.Final"
66 api project(" :cloudopt-next-waf" )
77 api project(" :cloudopt-next-logging" )
88 api project(" :cloudopt-next-utils" )
Original file line number Diff line number Diff line change 1- project_version =3.0.0.0-BETA3
1+ project_version =3.0.0.0-BETA4
22java_version =11
33kotlin_version =1.4.0
44vertx_version =4.0.0
Original file line number Diff line number Diff line change 11dependencies {
2- implementation project(" :cloudopt-next-web" )
3- implementation " io.vertx:vertx-web-client:${ rootProject.property('vertx_version')} "
2+ api project(" :cloudopt-next-web" )
3+ api " io.vertx:vertx-web-client:${ rootProject.property('vertx_version')} "
44}
55
66description = ' Cloudopt Next Http Client'
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- package cloudopt.next.client
16+ package net. cloudopt.next.client
1717
1818import io.vertx.core.buffer.Buffer
1919import io.vertx.ext.web.client.HttpRequest
2020import io.vertx.ext.web.client.WebClient
2121import io.vertx.ext.web.client.WebClientOptions
22- import net.cloudopt.next.web.NextServer
2322import net.cloudopt.next.web.Worker
2423
2524
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- package cloudopt.next.client
17-
18- import io.vertx.ext.web.client.WebClientOptions
16+ package net.cloudopt.next.client
1917
2018
2119/*
@@ -30,9 +28,9 @@ fun main(args: Array<String>) {
3028 var client = HttpClient (" https://www.cloudopt.net" ).setPort(443 )
3129
3230
33- client.get(" /api/v1 /grade/website/www.baidu.com" ).send().onSuccess { response->
31+ client.get(" /api/v2 /grade/website/www.baidu.com" ).send().onSuccess { response ->
3432 print (response.bodyAsString())
35- }.onFailure{ err->
33+ }.onFailure { err ->
3634 println (" Connection failure!" )
3735 }
3836}
Original file line number Diff line number Diff line change 11dependencies {
2- implementation " org.bouncycastle:bcprov-jdk15on:1.68"
2+ api " org.bouncycastle:bcprov-jdk15on:1.68"
33}
44
55description = " Cloudopt Next Encrypt"
Original file line number Diff line number Diff line change 11dependencies {
2- implementation project(" :cloudopt-next-utils" )
3- implementation project(" :cloudopt-next-json" )
2+ api project(" :cloudopt-next-utils" )
3+ api project(" :cloudopt-next-json" )
44 testImplementation project(' :cloudopt-next-logging' )
55}
66
Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ import java.sql.Connection
3333object JooqManager {
3434
3535 @JvmStatic
36- var connection: Connection ? = null
36+ lateinit var connection: Connection
3737
3838 @JvmStatic
39- var dsl: DSLContext ? = null
39+ lateinit var dsl: DSLContext
4040
4141 @JvmStatic
42- var transactionProvider: TransactionProvider ? = null
42+ lateinit var transactionProvider: TransactionProvider
4343
4444 @JvmStatic
45- var connectionProvider: ConnectionProvider ? = null
45+ lateinit var connectionProvider: ConnectionProvider
4646
4747 @JvmStatic
4848 var settings: Settings = SettingsTools .defaultSettings()
Original file line number Diff line number Diff line change 11dependencies {
2- implementation project(" :cloudopt-next-web" )
3- implementation project(" :cloudopt-next-utils" )
4- implementation project(" :cloudopt-next-logging" )
5- implementation " io.vertx:vertx-kafka-client:${ rootProject.property('vertx_version')} "
2+ api project(" :cloudopt-next-web" )
3+ api project(" :cloudopt-next-utils" )
4+ api project(" :cloudopt-next-logging" )
5+ api " io.vertx:vertx-kafka-client:${ rootProject.property('vertx_version')} "
66 compileOnly " org.apache.kafka:kafka-clients:2.4.1"
77 testImplementation " org.apache.kafka:kafka-clients:2.4.1"
88 compileOnly " org.apache.kafka:kafka-streams:2.4.1"
Original file line number Diff line number Diff line change 11dependencies {
2- implementation project(" :cloudopt-next-web" )
3- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-reactive:${ property('kotlin_version')} "
2+ api project(" :cloudopt-next-web" )
3+ api " org.jetbrains.kotlinx:kotlinx-coroutines-reactive:${ property('kotlin_version')} "
44 compileOnly " io.lettuce:lettuce-core:6.0.2.RELEASE"
55 testImplementation " io.lettuce:lettuce-core:6.0.2.RELEASE"
66}
You can’t perform that action at this time.
0 commit comments