mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 07:59:21 +08:00
Switch to kotlin-compile-testing for JsonClassCodegenProcessorTe… (#928)
* Add kotlin-compile-testing dependency * Add Okio dependency to tests to match kotlin-compile-testing Without this, Okio.sink() fails to resolve at runtime * Try converting privateConstructor() to kotlin-compile-testing * Space * Update to 1.2.2 * Use new kotlin source file API * Use temporaryFolder as workingDir * Extract prepareCompilation helper method This allows for modifying the compilation with extra bits as needed * Migrate tests entirely to new API * Remove incorrect error message This passed before, but was picked up in https://github.com/square/moshi/pull/903 before and observed to be incorrect. * Remove custom kotlin compiler implementations * Add an OK exit code test This wasn't possible before! * Remove jitpack dependency now that it's on mavencentral * Move versions to parent pom * Fix new test from rebase
This commit is contained in:
19
pom.xml
19
pom.xml
@@ -29,20 +29,25 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<java.version>1.7</java.version>
|
||||
<kotlin.version>1.3.40</kotlin.version>
|
||||
<kotlin-metadata.version>1.4.0</kotlin-metadata.version>
|
||||
<dokka.version>0.9.17</dokka.version>
|
||||
<maven-assembly.version>3.1.0</maven-assembly.version>
|
||||
<incap.version>0.2</incap.version>
|
||||
<autoservice.version>1.0-rc5</autoservice.version>
|
||||
|
||||
<!-- Dependencies -->
|
||||
<auto-common.version>0.10</auto-common.version>
|
||||
<auto-service.version>1.0-rc5</auto-service.version>
|
||||
<dokka.version>0.9.17</dokka.version>
|
||||
<incap.version>0.2</incap.version>
|
||||
<okio.version>1.16.0</okio.version>
|
||||
<okio2.version>2.1.0</okio2.version>
|
||||
<kotlin.version>1.3.40</kotlin.version>
|
||||
<kotlinpoet.version>1.3.0</kotlinpoet.version>
|
||||
<kotlin-metadata.version>1.4.0</kotlin-metadata.version>
|
||||
<maven-assembly.version>3.1.0</maven-assembly.version>
|
||||
|
||||
<!-- Test Dependencies -->
|
||||
<assertj.version>3.11.1</assertj.version>
|
||||
<compile-testing.version>0.15</compile-testing.version>
|
||||
<junit.version>4.12</junit.version>
|
||||
<assertj.version>3.11.1</assertj.version>
|
||||
<kotlin-compile-testing.version>1.2.2</kotlin-compile-testing.version>
|
||||
<truth.version>1.0</truth.version>
|
||||
</properties>
|
||||
|
||||
<scm>
|
||||
|
Reference in New Issue
Block a user