Skip to content

Commit

Permalink
Update atplug towards Kotlin (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg authored Apr 6, 2023
2 parents 9c22297 + 1505351 commit 918f380
Show file tree
Hide file tree
Showing 14 changed files with 404 additions and 431 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# AtPlug releases

## [Unreleased]
### Added
- Add methods for taking `KClass` instead of just `Class` to prepare for Kotlin Multiplatform. ([#8](https://github.com/diffplug/atplug/pull/8))

## [1.0.1] - 2022-12-31
### Fixed
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2022 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.diffplug.atplug.tooling

import com.diffplug.atplug.tooling.gradle.JavaExecable
import java.io.File
import java.util.*

/** [PlugGenerator.PlugGenerator] in a [JavaExecable] form. */
class PlugGeneratorJavaExecable(toSearch: List<File>?, toLinkAgainst: Set<File>?) : JavaExecable {
// inputs
var toSearch: List<File>
var toLinkAgainst: Set<File>

// outputs
@JvmField var atplugInf: SortedMap<String, String>? = null

init {
this.toSearch = ArrayList(toSearch)
this.toLinkAgainst = LinkedHashSet(toLinkAgainst)
}

override fun run() {
val metadataGen = PlugGenerator(toSearch, toLinkAgainst)
atplugInf = metadataGen.atplugInf
}
}

This file was deleted.

Loading

0 comments on commit 918f380

Please sign in to comment.