This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const tslintFix: AutofixRegistration = spawnedCommandAutofix( | |
"tslint", | |
allSatisfied(IsTypeScript, IsNode, hasFile("tslint.json")), | |
{ ignoreFailure: true, considerOnlyChangedFiles: false }, | |
asSpawnCommand("npm run lint:fix", DevelopmentEnvOptions) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sdm: SoftwareDeliveryMachine = createSoftwareDeliveryMachine( | |
{ | |
name: "Spring software delivery machine", | |
configuration, | |
}); | |
sdm.addExtensionPacks(SpringSupport, kubernetesSupport()); | |
const autofix = new Autofix().with(AddDockerfileAutofix); | |
const version = new Version().withVersioner(MavenProjectVersioner); | |
const build = new Build().with({builder: new MavenBuilder(sdm), progressReporter: MavenProgressReporter}); | |
const dockerBuild = new DockerBuild().with({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.activemq.command.ActiveMQTextMessage | |
import org.springframework.context.event.EventListener | |
import org.springframework.http.HttpStatus | |
import org.springframework.http.ResponseEntity | |
import org.springframework.jms.core.JmsTemplate | |
import org.springframework.jms.core.MessageCreator | |
import org.springframework.web.bind.annotation.GetMapping | |
import org.springframework.web.bind.annotation.PostMapping | |
import javax.jms.Queue | |
import javax.jms.TextMessage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.activemq.command.ActiveMQTextMessage | |
import org.springframework.context.event.EventListener | |
import org.springframework.http.HttpStatus | |
import org.springframework.http.ResponseEntity | |
import org.springframework.jms.core.JmsTemplate | |
import org.springframework.jms.core.MessageCreator | |
import org.springframework.web.bind.annotation.GetMapping | |
import org.springframework.web.bind.annotation.PostMapping | |
import javax.jms.Queue | |
import javax.jms.TextMessage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shared datastructures | |
data class ResponseModel(val value: String) | |
data class JsonResponse(val jsonValue: String) | |
// example 1 | |
interface FooUseCase { | |
fun <T> T doSomething(presenter: (ResponseModel -> T)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.mongodb.BasicDBList; | |
import com.mongodb.BasicDBObject; | |
import com.mongodb.DBObject; | |
import org.springframework.core.convert.converter.Converter; | |
import org.springframework.data.convert.ReadingConverter; | |
import org.springframework.data.convert.WritingConverter; | |
import org.springframework.data.geo.Point; | |
import org.springframework.data.geo.Polygon; | |
import java.util.ArrayList; |