Skip to content

Commit

Permalink
More jitpack.io adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
pambrose committed Dec 2, 2021
1 parent 7af4857 commit ce9cbb6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ depends:

# 6.9.1
upgrade-wrapper:
./gradlew wrapper --gradle-version=7.3 --distribution-type=bin
./gradlew wrapper --gradle-version=7.3.1 --distribution-type=bin
9 changes: 3 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'org.jetbrains.kotlin.plugin.serialization' version '1.6.0' apply false
id 'com.github.gmazzo.buildconfig' version '3.0.3' apply false
id "com.github.ben-manes.versions" version '0.39.0' apply false
id "org.flywaydb.flyway" version "8.0.5"
id "org.flywaydb.flyway" version "8.2.0"
}

ext {
Expand Down Expand Up @@ -84,9 +84,10 @@ ext {
allprojects {
description = 'ReadingBat Core'
group 'com.github.readingbat'
version '1.23.8'
version '1.23.9'

apply plugin: 'application'
apply plugin: 'java-library' // gradle 7
apply plugin: 'maven-publish' // required for jitpack.io install // gradle 7
apply plugin: 'org.jmailen.kotlinter'
apply plugin: 'org.jetbrains.kotlin.jvm'
Expand All @@ -96,11 +97,7 @@ allprojects {

repositories {
mavenLocal()
maven { url = 'https://kotlin.bintray.com/ktor' }
maven { url = 'https://kotlin.bintray.com/kotlinx' }
maven { url = 'https://kotlin.bintray.com/kotlin-js-wrappers' }
maven { url = 'https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers' }
maven { url = 'https://maven-central.storage-download.googleapis.com/repos/central/data/' }
mavenCentral()
maven { url = 'https://jitpack.io' }
}
Expand Down
13 changes: 6 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,28 @@ org.gradle.daemon=true
org.gradle.configureondemand=true
org.gradle.parallel=true
org.gradle.caching=true
# -XX:MaxPermSize=512m
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
cloud_version=1.4.0
commons_version=1.9
coroutines_version=1.5.2
coroutines_version=1.6.0-RC
css_version=1.0.0-pre.156-kotlin-1.5.0
exposed_version=0.36.2
flexmark_version=0.62.2
github_api_version=1.135
gson_version=2.8.9
hikari_version=5.0.0
java_script_version=2.0.0
kotest_version=5.0.0.RC
kotest_version=5.0.1
kotest_ktor_version=4.4.3
kotlin_version=1.6.0
ktor_version=1.6.5
logback_version=1.2.6
logging_version=2.0.11
ktor_version=1.6.6
logback_version=1.2.7
logging_version=2.1.0
pgjdbc_version=0.8.9
postgres_version=42.3.1
prometheus_version=0.12.0
proxy_version=1.10.1
redis_version=3.7.0
serialization_version=1.3.1
sendgrid_version=4.8.0
sendgrid_version=4.8.1
utils_version=1.19.0
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 0 additions & 6 deletions jitpack.io

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ internal fun addImports(code: String, variableName: String): String {
.filter { code.contains("${it.javaObjectType.simpleName}(") } // See if the class is referenced
.map { "import ${it.javaObjectType.name}" } // Convert to import stmt
.filterNot { code.contains(it) } // Do not include if import already present
.joinToString("\n") // Turn into String
.joinToString("\n") // Turn into String

val funcImports =
listOf(::readingBatContent)
//.onEach { println("Checking for ${it.name}") }
.filter { code.contains("${it.name}(") } // See if the function is referenced
.map { "import ${it.fqMethodName}" } // Convert to import stmt
.filterNot { code.contains(it) } // Do not include is import already present
.joinToString("\n") // Turn into String
.joinToString("\n") // Turn into String

val imports = listOf(classImports, funcImports).filter { it.isNotBlank() }.joinToString("\n")
return """
Expand Down

0 comments on commit ce9cbb6

Please sign in to comment.