{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-statemachine/issues/244","repository_url":"https://api.github.com/repos/spring-projects/spring-statemachine","labels_url":"https://api.github.com/repos/spring-projects/spring-statemachine/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-statemachine/issues/244/comments","events_url":"https://api.github.com/repos/spring-projects/spring-statemachine/issues/244/events","html_url":"https://github.com/spring-projects/spring-statemachine/issues/244","id":172572349,"number":244,"title":"remove dependency on spring-core org/springframework/util/Assert","user":{"login":"n0mer","id":1862997,"avatar_url":"https://avatars.githubusercontent.com/u/1862997?v=3","gravatar_id":"","url":"https://api.github.com/users/n0mer","html_url":"https://github.com/n0mer","followers_url":"https://api.github.com/users/n0mer/followers","following_url":"https://api.github.com/users/n0mer/following{/other_user}","gists_url":"https://api.github.com/users/n0mer/gists{/gist_id}","starred_url":"https://api.github.com/users/n0mer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n0mer/subscriptions","organizations_url":"https://api.github.com/users/n0mer/orgs","repos_url":"https://api.github.com/users/n0mer/repos","events_url":"https://api.github.com/users/n0mer/events{/privacy}","received_events_url":"https://api.github.com/users/n0mer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-22T22:42:11Z","updated_at":"2016-08-23T11:01:58Z","closed_at":null,"body":"Hi,\r\n\r\ntrying to use spring-statemachine in non-spring environment using builder:\r\n\r\n```java\r\njava.lang.NoClassDefFoundError: Failed resolution of: Lorg/springframework/util/Assert;\r\n                                                                                     at org.springframework.statemachine.config.common.annotation.AbstractConfiguredAnnotationBuilder.<init>(AbstractConfiguredAnnotationBuilder.java:91)\r\n                                                                                     at org.springframework.statemachine.config.builders.StateMachineModelBuilder.<init>(StateMachineModelBuilder.java:54)\r\n                                                                                     at org.springframework.statemachine.config.StateMachineBuilder$BuilderStateMachineConfigurerAdapter.getStateMachineModelBuilder(StateMachineBuilder.java:211)\r\n                                                                                     at org.springframework.statemachine.config.StateMachineBuilder$BuilderStateMachineConfigurerAdapter.<init>(StateMachineBuilder.java:165)\r\n                                                                                     at org.springframework.statemachine.config.StateMachineBuilder$Builder.<init>(StateMachineBuilder.java:76)\r\n                                                                                     at org.springframework.statemachine.config.StateMachineBuilder.builder(StateMachineBuilder.java:57)\r\n```\r\n\r\nmethod in question: \r\n```java\r\norg.springframework.statemachine.config.common.annotation.AbstractConfiguredAnnotationBuilder#AbstractConfiguredAnnotationBuilder(org.springframework.statemachine.config.common.annotation.ObjectPostProcessor<java.lang.Object>, boolean)\r\n```\r\n\r\ncode\r\n```java\r\n\t/**\r\n\t * Instantiates a new annotation builder.\r\n\t *\r\n\t * @param objectPostProcessor the object post processor\r\n\t * @param allowConfigurersOfSameType the allow configurers of same type\r\n\t */\r\n\tprotected AbstractConfiguredAnnotationBuilder(ObjectPostProcessor<Object> objectPostProcessor, boolean allowConfigurersOfSameType) {\r\n\t\tAssert.notNull(objectPostProcessor, \"objectPostProcessor cannot be null\");\r\n\t\tthis.objectPostProcessor = objectPostProcessor;\r\n\t\tthis.allowConfigurersOfSameType = allowConfigurersOfSameType;\r\n\t}\r\n```\r\n\r\nClass org/springframework/util/Assert belongs to spring-core, which is transitively included via `spring-messaging` and `spring-tx`. If you need only statemachine itself - you've got no luck:\r\n\r\n```groovy\r\n    compile(\"org.springframework.statemachine:spring-statemachine-core:1.1.0.RELEASE\") {\r\n        exclude group: 'org.springframework', module: 'spring-messaging'\r\n        exclude group: 'org.springframework', module: 'spring-tx'\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-statemachine/issues/comments/241697570","html_url":"https://github.com/spring-projects/spring-statemachine/issues/244#issuecomment-241697570","issue_url":"https://api.github.com/repos/spring-projects/spring-statemachine/issues/244","id":241697570,"user":{"login":"jvalkeal","id":50398,"avatar_url":"https://avatars.githubusercontent.com/u/50398?v=3","gravatar_id":"","url":"https://api.github.com/users/jvalkeal","html_url":"https://github.com/jvalkeal","followers_url":"https://api.github.com/users/jvalkeal/followers","following_url":"https://api.github.com/users/jvalkeal/following{/other_user}","gists_url":"https://api.github.com/users/jvalkeal/gists{/gist_id}","starred_url":"https://api.github.com/users/jvalkeal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvalkeal/subscriptions","organizations_url":"https://api.github.com/users/jvalkeal/orgs","repos_url":"https://api.github.com/users/jvalkeal/repos","events_url":"https://api.github.com/users/jvalkeal/events{/privacy}","received_events_url":"https://api.github.com/users/jvalkeal/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T11:01:58Z","updated_at":"2016-08-23T11:01:58Z","body":"Well Spring Statemachine is a Spring project and depends on a Spring Framework. You can't remove these core dependencies."}}
{"actor":{"display_login":"jvalkeal"}}